diff --git a/test/src/specs/sync/chain_forks.rs b/test/src/specs/sync/chain_forks.rs index 29a98e6395..2b203de9cc 100644 --- a/test/src/specs/sync/chain_forks.rs +++ b/test/src/specs/sync/chain_forks.rs @@ -624,6 +624,11 @@ impl Spec for ForkedTransaction { let node0 = &net.nodes[0]; let node1 = &net.nodes[1]; let finalization_delay_length = node0.consensus().finalization_delay_length(); + (0..=finalization_delay_length).for_each(|_| { + let block = node0.new_block(None, None, None); + node0.submit_block(&block.data()); + node1.submit_block(&block.data()); + }); net.exit_ibd_mode(); let fixed_point = node0.get_tip_block_number(); diff --git a/test/src/utils.rs b/test/src/utils.rs index 0f4a8014ee..2f0161565f 100644 --- a/test/src/utils.rs +++ b/test/src/utils.rs @@ -220,7 +220,7 @@ pub fn generate_utxo_set(node: &Node, n: usize) -> TXOSet { let mature_number = node.get_tip_block_number() - cellbase_maturity.index(); let mature_block = node.get_block_by_number(mature_number); let mature_cellbase = mature_block.transaction(0).unwrap(); - if mature_cellbase.outputs().len() == 0 { + if mature_cellbase.outputs().is_empty() { continue; }