Skip to content

Commit 5dfe303

Browse files
jkczyzclaude
andcommitted
Handle DiscardFunding with FundingInfo::Tx variant in chanmon_consistency
The process_events! macro only handled DiscardFunding events with FundingInfo::Contribution, but splice RBF replacements can produce DiscardFunding with FundingInfo::Tx when the original splice transaction is discarded. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 27a8dbb commit 5dfe303

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fuzz/src/chanmon_consistency.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,11 +2029,12 @@ pub fn do_test<Out: Output + MaybeSend + MaybeSync>(data: &[u8], out: Out) {
20292029
},
20302030
events::Event::SpliceFailed { .. } => {},
20312031
events::Event::DiscardFunding {
2032-
funding_info: events::FundingInfo::Contribution { .. },
2032+
funding_info: events::FundingInfo::Contribution { .. }
2033+
| events::FundingInfo::Tx { .. },
20332034
..
20342035
} => {},
20352036

2036-
_ => panic!("Unhandled event"),
2037+
_ => panic!("Unhandled event: {:?}", event),
20372038
}
20382039
}
20392040
while nodes[$node].needs_pending_htlc_processing() {

0 commit comments

Comments
 (0)