File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lightning-background-processor/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1392,14 +1392,14 @@ 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 {
1400
1396
node. node . best_block_updated ( & header, height) ;
1401
1397
node. chain_monitor . best_block_updated ( & header, height) ;
1402
1398
node. sweeper . best_block_updated ( & header, height) ;
1399
+ // We need the TestBroadcaster to know about the new height so that it doesn't think
1400
+ // we're violating the time lock requirements of transactions broadcasted at that
1401
+ // point.
1402
+ node. tx_broadcaster . blocks . lock ( ) . unwrap ( ) . push ( ( genesis_block ( Network :: Bitcoin ) , height) ) ;
1403
1403
}
1404
1404
}
1405
1405
}
You can’t perform that action at this time.
0 commit comments