Skip to content

Commit af4c5a2

Browse files
committed
Add comment describing how ChannelMonitor::block_connected is called
1 parent 39d1f48 commit af4c5a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channelmonitor.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2397,6 +2397,11 @@ impl<ChanSigner: ChannelKeys> ChannelMonitor<ChanSigner> {
23972397
}
23982398
}
23992399

2400+
/// Called by SimpleManyChannelMonitor::block_connected, which implements
2401+
/// ChainListener::block_connected.
2402+
/// Eventually this should be pub and, roughly, implement ChainListener, however this requires
2403+
/// &mut self, as well as returns new spendable outputs and outpoints to watch for spending of
2404+
/// on-chain.
24002405
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)>) {
24012406
for tx in txn_matched {
24022407
let mut output_val = 0;

0 commit comments

Comments
 (0)