Skip to content

Commit c860f6d

Browse files
Revert "fixup: simplify tlv fields with (default_value,x)"
This reverts commit 22a7f78.
1 parent 61d9c28 commit c860f6d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6535,10 +6535,8 @@ impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP
65356535
(32, pending_funding, optional_vec),
65366536
(33, htlcs_resolved_to_user, option),
65376537
(34, alternative_funding_confirmed, option),
6538-
(35, is_manual_broadcast, (default_value, false)),
6539-
// Older monitors prior to LDK 0.2 assume this is `true` when absent
6540-
// during upgrade so holder broadcasts aren't gated unexpectedly.
6541-
(37, funding_seen_onchain, (default_value, true)),
6538+
(35, is_manual_broadcast, option),
6539+
(37, funding_seen_onchain, option),
65426540
});
65436541
// Note that `payment_preimages_with_info` was added (and is always written) in LDK 0.1, so
65446542
// we can use it to determine if this monitor was last written by LDK 0.1 or later.
@@ -6656,8 +6654,10 @@ impl<'a, 'b, ES: EntropySource, SP: SignerProvider> ReadableArgs<(&'a ES, &'b SP
66566654
prev_holder_commitment_tx,
66576655
},
66586656
pending_funding: pending_funding.unwrap_or(vec![]),
6659-
is_manual_broadcast: is_manual_broadcast.unwrap(),
6660-
funding_seen_onchain: funding_seen_onchain.unwrap(),
6657+
is_manual_broadcast: is_manual_broadcast.unwrap_or(false),
6658+
// Older monitors prior to LDK 0.2 assume this is `true` when absent
6659+
// during upgrade so holder broadcasts aren't gated unexpectedly.
6660+
funding_seen_onchain: funding_seen_onchain.unwrap_or(true),
66616661

66626662
latest_update_id,
66636663
commitment_transaction_number_obscure_factor,

0 commit comments

Comments
 (0)