Skip to content

Commit c73e942

Browse files
committed
lnwire: change DynPropose/DynCommit TLV numbers to align with spec
1 parent 9f9e335 commit c73e942

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lnwire/dyn_propose.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ const (
1616

1717
// DPMaxHtlcValueInFlightMsat is the TLV type number that identifies the
1818
// record for DynPropose.MaxValueInFlight.
19-
DPMaxHtlcValueInFlightMsat tlv.Type = 1
19+
DPMaxHtlcValueInFlightMsat tlv.Type = 2
2020

2121
// DPHtlcMinimumMsat is the TLV type number that identifies the record
2222
// for DynPropose.HtlcMinimum.
23-
DPHtlcMinimumMsat tlv.Type = 7
23+
DPHtlcMinimumMsat tlv.Type = 4
2424

2525
// DPChannelReserveSatoshis is the TLV type number that identifies the
2626
// for DynPropose.ChannelReserve.
27-
DPChannelReserveSatoshis tlv.Type = 2
27+
DPChannelReserveSatoshis tlv.Type = 6
2828

2929
// DPToSelfDelay is the TLV type number that identifies the record for
3030
// DynPropose.CsvDelay.
31-
DPToSelfDelay tlv.Type = 3
31+
DPToSelfDelay tlv.Type = 8
3232

3333
// DPMaxAcceptedHtlcs is the TLV type number that identifies the record
3434
// for DynPropose.MaxAcceptedHTLCs.
35-
DPMaxAcceptedHtlcs tlv.Type = 4
35+
DPMaxAcceptedHtlcs tlv.Type = 10
3636

3737
// DPChannelType is the TLV type number that identifies the record for
3838
// DynPropose.ChannelType.
39-
DPChannelType tlv.Type = 6
39+
DPChannelType tlv.Type = 12
4040
)
4141

4242
// DynPropose is a message that is sent during a dynamic commitments negotiation

0 commit comments

Comments
 (0)