Skip to content

Commit 2da38a3

Browse files
committed
f format, debug_assert_eq
1 parent 77a7e16 commit 2da38a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7030,9 +7030,10 @@ impl<SP: Deref> FundedChannel<SP> where
70307030

70317031
// if next_funding_txid is set:
70327032
let (commitment_update, tx_signatures, tx_abort) = if let Some(next_funding_txid) = msg.next_funding_txid {
7033-
if let Some(session) = &self.interactive_tx_signing_session {
7033+
if let Some(session) = &self.interactive_tx_signing_session {
70347034
// if next_funding_txid matches the latest interactive funding transaction:
70357035
if session.unsigned_tx().compute_txid() == next_funding_txid {
7036+
debug_assert_eq!(session.unsigned_tx().compute_txid(), self.maybe_get_next_funding_txid().unwrap());
70367037
// if it has not received tx_signatures for that funding transaction:
70377038
if !session.counterparty_sent_tx_signatures() {
70387039
// if next_commitment_number is zero:

0 commit comments

Comments
 (0)