@@ -1373,13 +1373,13 @@ mod tests {
13731373 node. sweeper . transactions_confirmed ( & header, & txdata, height) ;
13741374 } ,
13751375 x if x == depth => {
1376- node. node . best_block_updated ( & header, height) ;
1377- node. chain_monitor . best_block_updated ( & header, height) ;
1378- node. sweeper . best_block_updated ( & header, height) ;
13791376 // We need the TestBroadcaster to know about the new height so that it doesn't think
13801377 // we're violating the time lock requirements of transactions broadcasted at that
13811378 // point.
13821379 node. tx_broadcaster . blocks . lock ( ) . unwrap ( ) . push ( ( genesis_block ( Network :: Bitcoin ) , height) ) ;
1380+ node. node . best_block_updated ( & header, height) ;
1381+ node. chain_monitor . best_block_updated ( & header, height) ;
1382+ node. sweeper . best_block_updated ( & header, height) ;
13831383 } ,
13841384 _ => { } ,
13851385 }
@@ -1392,11 +1392,11 @@ mod tests {
13921392 let height = node. best_block . height + 1 ;
13931393 let header = create_dummy_header ( prev_blockhash, height) ;
13941394 node. best_block = BestBlock :: new ( header. block_hash ( ) , height) ;
1395- // We need the TestBroadcaster to know about the new height so that it doesn't think
1396- // we're violating the time lock requirements of transactions broadcasted at that
1397- // point.
1398- node. tx_broadcaster . blocks . lock ( ) . unwrap ( ) . push ( ( genesis_block ( Network :: Bitcoin ) , height) ) ;
13991395 if i == num_blocks {
1396+ // We need the TestBroadcaster to know about the new height so that it doesn't think
1397+ // we're violating the time lock requirements of transactions broadcasted at that
1398+ // point.
1399+ node. tx_broadcaster . blocks . lock ( ) . unwrap ( ) . push ( ( genesis_block ( Network :: Bitcoin ) , height) ) ;
14001400 node. node . best_block_updated ( & header, height) ;
14011401 node. chain_monitor . best_block_updated ( & header, height) ;
14021402 node. sweeper . best_block_updated ( & header, height) ;
0 commit comments