From 79e4e744470b5218c0cd99978ff95de3c6317a1e Mon Sep 17 00:00:00 2001 From: Keagan McClelland Date: Tue, 15 Oct 2024 20:36:05 -0600 Subject: [PATCH] lnwire: change DynPropose/DynCommit TLV numbers to align with spec --- lnwire/dyn_propose.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lnwire/dyn_propose.go b/lnwire/dyn_propose.go index d25c39e4f..8d24e96d0 100644 --- a/lnwire/dyn_propose.go +++ b/lnwire/dyn_propose.go @@ -16,27 +16,27 @@ const ( // DPMaxHtlcValueInFlightMsat is the TLV type number that identifies the // record for DynPropose.MaxValueInFlight. - DPMaxHtlcValueInFlightMsat tlv.Type = 1 + DPMaxHtlcValueInFlightMsat tlv.Type = 2 // DPHtlcMinimumMsat is the TLV type number that identifies the record // for DynPropose.HtlcMinimum. - DPHtlcMinimumMsat tlv.Type = 7 + DPHtlcMinimumMsat tlv.Type = 4 // DPChannelReserveSatoshis is the TLV type number that identifies the // for DynPropose.ChannelReserve. - DPChannelReserveSatoshis tlv.Type = 2 + DPChannelReserveSatoshis tlv.Type = 6 // DPToSelfDelay is the TLV type number that identifies the record for // DynPropose.CsvDelay. - DPToSelfDelay tlv.Type = 3 + DPToSelfDelay tlv.Type = 8 // DPMaxAcceptedHtlcs is the TLV type number that identifies the record // for DynPropose.MaxAcceptedHTLCs. - DPMaxAcceptedHtlcs tlv.Type = 4 + DPMaxAcceptedHtlcs tlv.Type = 10 // DPChannelType is the TLV type number that identifies the record for // DynPropose.ChannelType. - DPChannelType tlv.Type = 6 + DPChannelType tlv.Type = 12 ) // DynPropose is a message that is sent during a dynamic commitments negotiation