Skip to content

Commit 2aebc7a

Browse files
committed
f Move tx_broadcaster notif down
1 parent 7548cc1 commit 2aebc7a

File tree

1 file changed

+4
-4
lines changed
  • lightning-background-processor/src

1 file changed

+4
-4
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)