Skip to content

Commit 1379144

Browse files
committed
Ignore stale splice signing fuzz events
Now that the fuzz target supports canceling splice funding attempts, we may see failed signing attempts due to the cancellation.
1 parent bb597dd commit 1379144

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

fuzz/src/chanmon_consistency.rs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2814,9 +2814,20 @@ impl<'a, Out: Output + MaybeSend + MaybeSync> Harness<'a, Out> {
28142814
..
28152815
} => {
28162816
let signed_tx = nodes[node_idx].wallet.sign_tx(unsigned_transaction).unwrap();
2817-
nodes[node_idx]
2818-
.funding_transaction_signed(&channel_id, &counterparty_node_id, signed_tx)
2819-
.unwrap();
2817+
match nodes[node_idx].funding_transaction_signed(
2818+
&channel_id,
2819+
&counterparty_node_id,
2820+
signed_tx,
2821+
) {
2822+
Ok(()) => {},
2823+
Err(APIError::APIMisuseError { ref err })
2824+
if err.contains("not expecting funding signatures") =>
2825+
{
2826+
// A queued signing event can be invalidated by a later `tx_abort`
2827+
// before the application handles it.
2828+
},
2829+
Err(e) => panic!("{e:?}"),
2830+
}
28202831
},
28212832
events::Event::SpliceNegotiated { new_funding_txo, .. } => {
28222833
let mut txs = nodes[node_idx].broadcaster.txn_broadcasted.borrow_mut();

0 commit comments

Comments
 (0)