Skip to content

Commit 808891c

Browse files
committed
f Account for Listen::blocks_disconnected taking fork point now
1 parent 78d20f7 commit 808891c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/chain/bitcoind.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,11 +1381,11 @@ impl Listen for ChainListener {
13811381
self.output_sweeper.block_connected(block, height);
13821382
}
13831383

1384-
fn block_disconnected(&self, header: &bitcoin::block::Header, height: u32) {
1385-
self.onchain_wallet.block_disconnected(header, height);
1386-
self.channel_manager.block_disconnected(header, height);
1387-
self.chain_monitor.block_disconnected(header, height);
1388-
self.output_sweeper.block_disconnected(header, height);
1384+
fn blocks_disconnected(&self, fork_point_block: lightning::chain::BestBlock) {
1385+
self.onchain_wallet.blocks_disconnected(fork_point_block);
1386+
self.channel_manager.blocks_disconnected(fork_point_block);
1387+
self.chain_monitor.blocks_disconnected(fork_point_block);
1388+
self.output_sweeper.blocks_disconnected(fork_point_block);
13891389
}
13901390
}
13911391

src/wallet/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ impl Listen for Wallet {
748748
};
749749
}
750750

751-
fn block_disconnected(&self, _header: &bitcoin::block::Header, _height: u32) {
751+
fn blocks_disconnected(&self, _fork_point_block: BestBlock) {
752752
// This is a no-op as we don't have to tell BDK about disconnections. According to the BDK
753753
// team, it's sufficient in case of a reorg to always connect blocks starting from the last
754754
// point of disagreement.

0 commit comments

Comments
 (0)