lnd/record/custom_records.go
Olaoluwa Osuntokun 2ba7a531ae record: temp disable record validation
Existing code relies on the TLV value in the HTLC being zero, which
needs to change.
2024-04-26 19:17:47 -07:00

23 lines
512 B
Go

package record
const (
// CustomTypeStart is the start of the custom tlv type range as defined
// in BOLT 01.
CustomTypeStart = 65536
)
// CustomSet stores a set of custom key/value pairs.
type CustomSet map[uint64][]byte
// Validate checks that all custom records are in the custom type range.
func (c CustomSet) Validate() error {
/* for key := range c {
if key < CustomTypeStart {
return fmt.Errorf("no custom records with types "+
"below %v allowed", CustomTypeStart)
}
}*/
return nil
}