record: temp disable record validation

Existing code relies on the TLV value in the HTLC being zero, which
needs to change.
This commit is contained in:
Olaoluwa Osuntokun 2024-04-26 19:17:47 -07:00
parent d221298b56
commit 2ba7a531ae

View File

@ -1,7 +1,5 @@
package record
import "fmt"
const (
// CustomTypeStart is the start of the custom tlv type range as defined
// in BOLT 01.
@ -13,12 +11,12 @@ 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 {
/* for key := range c {
if key < CustomTypeStart {
return fmt.Errorf("no custom records with types "+
"below %v allowed", CustomTypeStart)
}
}
}*/
return nil
}