@@ -1373,13 +1373,13 @@ mod tests {
1373
1373
node. sweeper . transactions_confirmed ( & header, & txdata, height) ;
1374
1374
} ,
1375
1375
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) ;
1379
1376
// We need the TestBroadcaster to know about the new height so that it doesn't think
1380
1377
// we're violating the time lock requirements of transactions broadcasted at that
1381
1378
// point.
1382
1379
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) ;
1383
1383
} ,
1384
1384
_ => { } ,
1385
1385
}
@@ -1392,11 +1392,11 @@ mod tests {
1392
1392
let height = node. best_block . height + 1 ;
1393
1393
let header = create_dummy_header ( prev_blockhash, height) ;
1394
1394
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) ) ;
1399
1395
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) ) ;
1400
1400
node. node . best_block_updated ( & header, height) ;
1401
1401
node. chain_monitor . best_block_updated ( & header, height) ;
1402
1402
node. sweeper . best_block_updated ( & header, height) ;
0 commit comments