pub fn run_to_block(n: u64) {
    while System::block_number() < n {
        if System::block_number() > 1 {
            // mock on_finalize
            System::on_finalize(System::block_number());
            Scheduler::on_finalize(System::block_number());
            ConnectFour::on_finalize(System::block_number());
        }

        System::set_block_number(System::block_number() + 1);

        // mock on_initialize
        System::on_initialize(System::block_number());
        Scheduler::on_initialize(System::block_number());
        ConnectFour::on_initialize(System::block_number());
    }
}
/// Run until a particular block.
Run until a particular block.
Run until a particular block .
pub fn run_to_block(n: u64) {
    while System::block_number() < n {
        if System::block_number() > 1 {
            // mock on_finalize
            System::on_finalize(System::block_number());
            Scheduler::on_finalize(System::block_number());
            ConnectFour::on_finalize(System::block_number());
        }
        System::set_block_number(System::block_number() + 1);
        // mock on_initialize
        System::on_initialize(System::block_number());
        Scheduler::on_initialize(System::block_number());
        ConnectFour::on_initialize(System::block_number());
    }
}
pub fn run_to_block ( n : u64 ) { while System :: block_number ( ) < n { if System :: block_number ( ) > 1 { // mock on_finalize System :: on_finalize ( System :: block_number ( ) ) ; Scheduler :: on_finalize ( System :: block_number ( ) ) ; ConnectFour :: on_finalize ( System :: block_number ( ) ) ; } System :: set_block_number ( System :: block_number ( ) + 1 ) ; // mock on_initialize System :: on_initialize ( System :: block_number ( ) ) ; Scheduler :: on_initialize ( System :: block_number ( ) ) ; ConnectFour :: on_initialize ( System :: block_number ( ) ) ; } }
Run until a particular block.
Run until a particular block .
n
u64
n
u64