Skip to content

Commit 49d4649

Browse files
committed
f correct anchor comment
1 parent f55e102 commit 49d4649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2915,8 +2915,9 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
29152915
if claim_via_htlc_tx {
29162916
// If the claim was via an HTLC-Timeout/HTLC-Success transaction, it must be a
29172917
// 1-in-1-out transaction as its pre-signed.
2918+
// Note that if anchors are available these both may vary.
29182919
debug_assert_eq!(tx.input.len(), 1);
2919-
debug_assert_eq!(tx.output.len(), 1); // If anchors are enabled this should be 2
2920+
debug_assert_eq!(tx.output.len(), 1);
29202921
}
29212922

29222923
let mut payment_preimage = PaymentPreimage([0; 32]);

0 commit comments

Comments
 (0)