@@ -8893,7 +8893,6 @@ impl<SP: Deref> Writeable for Channel<SP> where SP::Target: SignerProvider {
8893
8893
8894
8894
self.context.channel_transaction_parameters.write(writer)?;
8895
8895
self.context.funding_transaction.write(writer)?;
8896
- self.context.funding_transaction_broadcast.write(writer)?;
8897
8896
8898
8897
self.context.counterparty_cur_commitment_point.write(writer)?;
8899
8898
self.context.counterparty_prev_commitment_point.write(writer)?;
@@ -8954,6 +8953,8 @@ impl<SP: Deref> Writeable for Channel<SP> where SP::Target: SignerProvider {
8954
8953
let cur_holder_commitment_point = Some(self.context.holder_commitment_point.current_point());
8955
8954
let next_holder_commitment_point = self.context.holder_commitment_point.next_point();
8956
8955
8956
+ let funding_transaction_broadcast = Some(self.context.funding_transaction_broadcast);
8957
+
8957
8958
write_tlv_fields!(writer, {
8958
8959
(0, self.context.announcement_sigs, option),
8959
8960
// minimum_depth and counterparty_selected_channel_reserve_satoshis used to have a
@@ -8994,7 +8995,8 @@ impl<SP: Deref> Writeable for Channel<SP> where SP::Target: SignerProvider {
8994
8995
(47, next_holder_commitment_point, option),
8995
8996
(49, self.context.local_initiated_shutdown, option), // Added in 0.0.122
8996
8997
(51, is_manual_broadcast, option), // Added in 0.0.124
8997
- (53, funding_tx_broadcast_safe_event_emitted, option) // Added in 0.0.124
8998
+ (53, funding_tx_broadcast_safe_event_emitted, option), // Added in 0.0.124
8999
+ (55, funding_transaction_broadcast, option), // Added in 1.0.1
8998
9000
});
8999
9001
9000
9002
Ok(())
@@ -9234,7 +9236,6 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
9234
9236
9235
9237
let mut channel_parameters: ChannelTransactionParameters = Readable::read(reader)?;
9236
9238
let funding_transaction: Option<Transaction> = Readable::read(reader)?;
9237
- let funding_transaction_broadcast: bool = Readable::read(reader)?;
9238
9239
9239
9240
let counterparty_cur_commitment_point = Readable::read(reader)?;
9240
9241
@@ -9310,6 +9311,8 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
9310
9311
let mut next_holder_commitment_point_opt: Option<PublicKey> = None;
9311
9312
let mut is_manual_broadcast = None;
9312
9313
9314
+ let mut funding_transaction_broadcast: Option<bool> = None;
9315
+
9313
9316
read_tlv_fields!(reader, {
9314
9317
(0, announcement_sigs, option),
9315
9318
(1, minimum_depth, option),
@@ -9345,6 +9348,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
9345
9348
(49, local_initiated_shutdown, option),
9346
9349
(51, is_manual_broadcast, option),
9347
9350
(53, funding_tx_broadcast_safe_event_emitted, option),
9351
+ (55, funding_transaction_broadcast, option), // Added in 1.0.1
9348
9352
});
9349
9353
9350
9354
let (channel_keys_id, holder_signer) = if let Some(channel_keys_id) = channel_keys_id {
@@ -9563,7 +9567,8 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, u32, &'c Ch
9563
9567
9564
9568
channel_transaction_parameters: channel_parameters,
9565
9569
funding_transaction,
9566
- funding_transaction_broadcast,
9570
+ // If value is missing, we use false, which may result in rebroadcast
9571
+ funding_transaction_broadcast: funding_transaction_broadcast.unwrap_or(false),
9567
9572
is_batch_funding,
9568
9573
9569
9574
counterparty_cur_commitment_point,
0 commit comments