Skip to content

Commit 8724487

Browse files
committed
f swap approach
1 parent 9b176d9 commit 8724487

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

fuzz/src/full_stack.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -634,12 +634,7 @@ pub fn do_test(data: &[u8], logger: &Arc<dyn Logger>) {
634634
if let Err(e) = channelmanager.funding_transaction_generated(&funding_generation.0, &funding_generation.1, tx.clone()) {
635635
// It's possible the channel has been closed in the mean time, but any other
636636
// failure may be a bug.
637-
if let APIError::ChannelUnavailable { err } = e {
638-
assert!(
639-
err.starts_with("Can't find a peer matching the passed counterparty node_id ") ||
640-
(err.starts_with("Channel with id ") && err.contains(" not found for the passed counterparty node_id "))
641-
);
642-
} else { panic!(); }
637+
if let APIError::ChannelUnavailable { .. } = e { } else { panic!(); }
643638
}
644639
pending_funding_signatures.insert(funding_output, tx);
645640
}

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2691,7 +2691,7 @@ where
26912691
(chan, funding_msg)
26922692
},
26932693
Err(_) => { return Err(APIError::ChannelUnavailable {
2694-
err: "Error deriving keys or signing initial commitment transactions - either our RNG or our counterparty's RNG is broken or the Signer refused to sign".to_owned()
2694+
err: "Signer refused to sign the initial commitment transaction".to_owned()
26952695
}) },
26962696
}
26972697
};

0 commit comments

Comments
 (0)