Skip to content

Commit 3d2c8f5

Browse files
authored
Merge pull request #1906 from wpaulino/prevent-downgrade-from-anchors
Use even types for opt_anchors
2 parents 626c606 + b578480 commit 3d2c8f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/chain/package.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ impl CounterpartyOfferedHTLCOutput {
203203

204204
impl_writeable_tlv_based!(CounterpartyOfferedHTLCOutput, {
205205
(0, per_commitment_point, required),
206-
(1, opt_anchors, option),
207206
(2, counterparty_delayed_payment_base_key, required),
208207
(4, counterparty_htlc_base_key, required),
209208
(6, preimage, required),
210209
(8, htlc, required),
210+
(10, opt_anchors, option),
211211
});
212212

213213
/// A struct to describe a HTLC output on a counterparty commitment transaction.
@@ -241,10 +241,10 @@ impl CounterpartyReceivedHTLCOutput {
241241

242242
impl_writeable_tlv_based!(CounterpartyReceivedHTLCOutput, {
243243
(0, per_commitment_point, required),
244-
(1, opt_anchors, option),
245244
(2, counterparty_delayed_payment_base_key, required),
246245
(4, counterparty_htlc_base_key, required),
247246
(6, htlc, required),
247+
(8, opt_anchors, option),
248248
});
249249

250250
/// A struct to describe a HTLC output on holder commitment transaction.
@@ -318,7 +318,7 @@ impl HolderFundingOutput {
318318

319319
impl_writeable_tlv_based!(HolderFundingOutput, {
320320
(0, funding_redeemscript, required),
321-
(1, opt_anchors, option),
321+
(2, opt_anchors, option),
322322
(3, funding_amount, option),
323323
});
324324

0 commit comments

Comments
 (0)