@@ -9507,7 +9507,6 @@ impl<SP: Deref> Writeable for Channel<SP> where SP::Target: SignerProvider {
9507
9507
(49, self.context.local_initiated_shutdown, option), // Added in 0.0.122
9508
9508
(51, is_manual_broadcast, option), // Added in 0.0.124
9509
9509
(53, funding_tx_broadcast_safe_event_emitted, option), // Added in 0.0.124
9510
- (55, self.context.next_funding_txid, option) // Added in 0.1.0
9511
9510
});
9512
9511
9513
9512
Ok(())
@@ -9797,7 +9796,6 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
9797
9796
let mut channel_pending_event_emitted = None;
9798
9797
let mut channel_ready_event_emitted = None;
9799
9798
let mut funding_tx_broadcast_safe_event_emitted = None;
9800
- let mut next_funding_txid = funding_transaction.as_ref().map(|tx| tx.compute_txid());
9801
9799
9802
9800
let mut user_id_high_opt: Option<u64> = None;
9803
9801
let mut channel_keys_id: Option<[u8; 32]> = None;
@@ -9858,7 +9856,6 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
9858
9856
(49, local_initiated_shutdown, option),
9859
9857
(51, is_manual_broadcast, option),
9860
9858
(53, funding_tx_broadcast_safe_event_emitted, option),
9861
- (55, next_funding_txid, option) // Added in 0.0.125
9862
9859
});
9863
9860
9864
9861
let (channel_keys_id, holder_signer) = if let Some(channel_keys_id) = channel_keys_id {
@@ -10119,10 +10116,13 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
10119
10116
10120
10117
blocked_monitor_updates: blocked_monitor_updates.unwrap(),
10121
10118
is_manual_broadcast: is_manual_broadcast.unwrap_or(false),
10119
+ // TODO(dual_funding): Instead of getting this from persisted value, figure it out based on the
10120
+ // funding transaction and other channel state.
10121
+ //
10122
10122
// If we've sent `commtiment_signed` for an interactively constructed transaction
10123
10123
// during a signing session, but have not received `tx_signatures` we MUST set `next_funding_txid`
10124
10124
// to the txid of that interactive transaction, else we MUST NOT set it.
10125
- next_funding_txid,
10125
+ next_funding_txid: None ,
10126
10126
},
10127
10127
interactive_tx_signing_session: None,
10128
10128
})
0 commit comments