mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 01:33:02 +01:00
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:
parent
d221298b56
commit
2ba7a531ae
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user