forked from lthn/blockchain
coretests: gen_checkpoints_set_after_switching_to_altchain fixed to fail if no fix present
This commit is contained in:
parent
ba912973cf
commit
de15869c27
1 changed files with 8 additions and 1 deletions
|
|
@ -945,10 +945,17 @@ bool gen_checkpoints_set_after_switching_to_altchain::generate(std::vector<test_
|
|||
|
||||
MAKE_NEXT_BLOCK(events, blk_2, blk_1, miner_acc);
|
||||
MAKE_NEXT_BLOCK(events, blk_3, blk_2, miner_acc);
|
||||
MAKE_NEXT_BLOCK(events, blk_4, blk_3, miner_acc);
|
||||
MAKE_NEXT_BLOCK(events, blk_4, blk_3, miner_acc); // <-- this should trigger the switching
|
||||
|
||||
DO_CALLBACK_PARAMS(events, "check_top_block", params_top_block(get_block_height(blk_4), get_block_hash(blk_4)));
|
||||
DO_CALLBACK(events, "check_being_in_cp_zone");
|
||||
|
||||
MAKE_NEXT_BLOCK(events, blk_5, blk_4, miner_acc); // <-- CHECKPOINT
|
||||
MAKE_NEXT_BLOCK(events, blk_6, blk_5, miner_acc);
|
||||
|
||||
DO_CALLBACK_PARAMS(events, "check_top_block", params_top_block(get_block_height(blk_6), get_block_hash(blk_6)));
|
||||
DO_CALLBACK(events, "check_not_being_in_cp_zone");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue