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 {
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 {
14001396 node. node . best_block_updated ( & header, height) ;
14011397 node. chain_monitor . best_block_updated ( & header, height) ;
14021398 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) ) ;
14031403 }
14041404 }
14051405 }
You can’t perform that action at this time.
0 commit comments