mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 22:27:22 +01:00
tlv+go.mod: generate inbound fee TLV type
Also add a temporariy replace to the tlv package which can be removed as soon as the PR that includes this commit is merged and a new tag for the tlv package has been created.
This commit is contained in:
3
go.mod
3
go.mod
@@ -203,6 +203,9 @@ require (
|
||||
// store have been included in a tagged sqldb version.
|
||||
replace github.com/lightningnetwork/lnd/sqldb => ./sqldb
|
||||
|
||||
// TODO(elle): replace once the updated tlv package has been tagged.
|
||||
replace github.com/lightningnetwork/lnd/tlv => ./tlv
|
||||
|
||||
// This replace is for https://github.com/advisories/GHSA-25xm-hr59-7c27
|
||||
replace github.com/ulikunitz/xz => github.com/ulikunitz/xz v0.5.11
|
||||
|
||||
|
||||
2
go.sum
2
go.sum
@@ -377,8 +377,6 @@ github.com/lightningnetwork/lnd/queue v1.1.1 h1:99ovBlpM9B0FRCGYJo6RSFDlt8/vOkQQ
|
||||
github.com/lightningnetwork/lnd/queue v1.1.1/go.mod h1:7A6nC1Qrm32FHuhx/mi1cieAiBZo5O6l8IBIoQxvkz4=
|
||||
github.com/lightningnetwork/lnd/ticker v1.1.1 h1:J/b6N2hibFtC7JLV77ULQp++QLtCwT6ijJlbdiZFbSM=
|
||||
github.com/lightningnetwork/lnd/ticker v1.1.1/go.mod h1:waPTRAAcwtu7Ji3+3k+u/xH5GHovTsCoSVpho0KDvdA=
|
||||
github.com/lightningnetwork/lnd/tlv v1.3.1 h1:o7CZg06y+rJZfUMAo0WzBLr0pgBWCzrt0f9gpujYUzk=
|
||||
github.com/lightningnetwork/lnd/tlv v1.3.1/go.mod h1:pJuiBj1ecr1WWLOtcZ+2+hu9Ey25aJWFIsjmAoPPnmc=
|
||||
github.com/lightningnetwork/lnd/tor v1.1.6 h1:WHUumk7WgU6BUFsqHuqszI9P6nfhMeIG+rjJBlVE6OE=
|
||||
github.com/lightningnetwork/lnd/tor v1.1.6/go.mod h1:qSRB8llhAK+a6kaTPWOLLXSZc6Hg8ZC0mq1sUQ/8JfI=
|
||||
github.com/ltcsuite/ltcd v0.0.0-20190101042124-f37f8bf35796 h1:sjOGyegMIhvgfq5oaue6Td+hxZuf3tDC8lAPrFldqFw=
|
||||
|
||||
@@ -22,6 +22,10 @@ const (
|
||||
// second defined unsigned TLV range used in pure TLV messages.
|
||||
pureTLVSecondUnsignedTypeRangeStart uint32 = 3000000000
|
||||
|
||||
// inboundFeeType defines the TLV type used within the channel_update
|
||||
// message to indicate the inbound fee for a channel.
|
||||
inboundFeeType = 55555
|
||||
|
||||
defaultOutputFile = "tlv_types_generated.go"
|
||||
)
|
||||
|
||||
@@ -29,6 +33,7 @@ const (
|
||||
var typeMarkers = map[uint32]struct{}{
|
||||
pureTLVSecondSignedTypeRangeStart: {},
|
||||
pureTLVSecondUnsignedTypeRangeStart: {},
|
||||
inboundFeeType: {},
|
||||
}
|
||||
|
||||
const typeCodeTemplate = `// Code generated by tlv/internal/gen; DO NOT EDIT.
|
||||
|
||||
@@ -3012,6 +3012,16 @@ func (t *tlvType300) tlv() {}
|
||||
|
||||
type TlvType300 = *tlvType300
|
||||
|
||||
type tlvType55555 struct{}
|
||||
|
||||
func (t *tlvType55555) TypeVal() Type {
|
||||
return 55555
|
||||
}
|
||||
|
||||
func (t *tlvType55555) tlv() {}
|
||||
|
||||
type TlvType55555 = *tlvType55555
|
||||
|
||||
type tlvType65536 struct{}
|
||||
|
||||
func (t *tlvType65536) TypeVal() Type {
|
||||
|
||||
Reference in New Issue
Block a user