Skip to content

Commit 3c10c69

Browse files
committed
Add comment describing how ChannelMonitor::block_connected is called
1 parent 3b5b2aa commit 3c10c69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channelmonitor.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,6 +2394,10 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
23942394
}
23952395
}
23962396

2397+
/// Called by ChannelMonitor::block_connected, which implements ChainListener::block_connected.
2398+
/// Eventually this should be pub and, roughly, implement ChainListener, however this requires
2399+
/// &mut self, as well as returns new spendable outputs and outpoints to watch for spending of
2400+
/// on-chain.
23972401
fn block_connected(&mut self, txn_matched: &[&Transaction], height: u32, block_hash: &Sha256dHash, broadcaster: &BroadcasterInterface, fee_estimator: &FeeEstimator)-> (Vec<(Sha256dHash, Vec<TxOut>)>, Vec<SpendableOutputDescriptor>, Vec<(HTLCSource, Option<PaymentPreimage>, PaymentHash)>) {
23982402
for tx in txn_matched {
23992403
let mut output_val = 0;

0 commit comments

Comments
 (0)