pub fn run_to_block(n: u64) {
    // This block hash is for the valid work report
    // let bh = maybe_bh.unwrap_or(hex::decode("05404b690b0c785bf180b2dd82a431d88d29baf31346c53dbda95e83e34c8a75").unwrap());
    // let fake_bh = H256::from_slice(bh.as_slice());
    while System::block_number() < n {
        // <system::BlockHash<Test>>::insert(System::block_number(), fake_bh.clone());
        if System::block_number() > 1 {
            System::on_finalize(System::block_number());
        }
        System::on_initialize(System::block_number());
        System::set_block_number(System::block_number() + 1);
    }
}
/// Run until a particular block.
Run until a particular block.
Run until a particular block .
pub fn run_to_block(n: u64) {
    // This block hash is for the valid work report
    // let bh = maybe_bh.unwrap_or(hex::decode("05404b690b0c785bf180b2dd82a431d88d29baf31346c53dbda95e83e34c8a75").unwrap());
    // let fake_bh = H256::from_slice(bh.as_slice());
    while System::block_number() < n {
        // <system::BlockHash<Test>>::insert(System::block_number(), fake_bh.clone());
        if System::block_number() > 1 {
            System::on_finalize(System::block_number());
        }
        System::on_initialize(System::block_number());
        System::set_block_number(System::block_number() + 1);
    }
}
pub fn run_to_block ( n : u64 ) { // This block hash is for the valid work report // let bh = maybe_bh.unwrap_or(hex::decode("05404b690b0c785bf180b2dd82a431d88d29baf31346c53dbda95e83e34c8a75").unwrap()); // let fake_bh = H256::from_slice(bh.as_slice()); while System :: block_number ( ) < n { // <system::BlockHash<Test>>::insert(System::block_number(), fake_bh.clone()); if System :: block_number ( ) > 1 { System :: on_finalize ( System :: block_number ( ) ) ; } System :: on_initialize ( System :: block_number ( ) ) ; System :: set_block_number ( System :: block_number ( ) + 1 ) ; } }
Run until a particular block.
Run until a particular block .
n
u64