mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
19 lines
642 B
Go
19 lines
642 B
Go
//go:build dev
|
|
// +build dev
|
|
|
|
package lncfg
|
|
|
|
// ExperimentalProtocol is a sub-config that houses any experimental protocol
|
|
// features that also require a build-tag to activate.
|
|
//
|
|
//nolint:lll
|
|
type ExperimentalProtocol struct {
|
|
CustomMessage []uint16 `long:"custom-message" description:"allows the custom message apis to send and report messages with the protocol number provided that fall outside of the custom message number range."`
|
|
}
|
|
|
|
// CustomMessageOverrides returns the set of protocol messages that we override
|
|
// to allow custom handling.
|
|
func (p ExperimentalProtocol) CustomMessageOverrides() []uint16 {
|
|
return p.CustomMessage
|
|
}
|