@@ -9515,7 +9515,6 @@ impl<SP: Deref> Writeable for Channel<SP> where SP::Target: SignerProvider {
9515
9515
(49, self.context.local_initiated_shutdown, option), // Added in 0.0.122
9516
9516
(51, is_manual_broadcast, option), // Added in 0.0.124
9517
9517
(53, funding_tx_broadcast_safe_event_emitted, option), // Added in 0.0.124
9518
- (55, self.context.next_funding_txid, option) // Added in 0.1.0
9519
9518
});
9520
9519
9521
9520
Ok(())
@@ -9805,7 +9804,6 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
9805
9804
let mut channel_pending_event_emitted = None;
9806
9805
let mut channel_ready_event_emitted = None;
9807
9806
let mut funding_tx_broadcast_safe_event_emitted = None;
9808
- let mut next_funding_txid = funding_transaction.as_ref().map(|tx| tx.compute_txid());
9809
9807
9810
9808
let mut user_id_high_opt: Option<u64> = None;
9811
9809
let mut channel_keys_id: Option<[u8; 32]> = None;
@@ -9866,7 +9864,6 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
9866
9864
(49, local_initiated_shutdown, option),
9867
9865
(51, is_manual_broadcast, option),
9868
9866
(53, funding_tx_broadcast_safe_event_emitted, option),
9869
- (55, next_funding_txid, option) // Added in 0.0.125
9870
9867
});
9871
9868
9872
9869
let (channel_keys_id, holder_signer) = if let Some(channel_keys_id) = channel_keys_id {
@@ -10127,10 +10124,13 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
10127
10124
10128
10125
blocked_monitor_updates: blocked_monitor_updates.unwrap(),
10129
10126
is_manual_broadcast: is_manual_broadcast.unwrap_or(false),
10127
+ // TODO(dual_funding): Instead of getting this from persisted value, figure it out based on the
10128
+ // funding transaction and other channel state.
10129
+ //
10130
10130
// If we've sent `commtiment_signed` for an interactively constructed transaction
10131
10131
// during a signing session, but have not received `tx_signatures` we MUST set `next_funding_txid`
10132
10132
// to the txid of that interactive transaction, else we MUST NOT set it.
10133
- next_funding_txid,
10133
+ next_funding_txid: None ,
10134
10134
},
10135
10135
interactive_tx_signing_session: None,
10136
10136
})
0 commit comments