Skip to content

Commit c1ad123

Browse files
committed
f Add details to register_output docs.
1 parent 7b04b80 commit c1ad123

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/chain/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,10 @@ pub trait Filter {
332332
fn register_tx(&self, txid: &Txid, script_pubkey: &Script);
333333

334334
/// Registers interest in spends of a transaction output.
335+
///
336+
/// Note that this method might be called during processing of a new block. You therefore need
337+
/// to ensure that also dependent output spents within a block are correctly handled, e.g., by
338+
/// re-scanning the block in question whenever new outputs have been registered mid-processing.
335339
fn register_output(&self, output: WatchedOutput);
336340
}
337341

0 commit comments

Comments
 (0)