mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 03:01:52 +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
|
package record
|
||||||
|
|
||||||
import "fmt"
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// CustomTypeStart is the start of the custom tlv type range as defined
|
// CustomTypeStart is the start of the custom tlv type range as defined
|
||||||
// in BOLT 01.
|
// in BOLT 01.
|
||||||
@ -13,12 +11,12 @@ type CustomSet map[uint64][]byte
|
|||||||
|
|
||||||
// Validate checks that all custom records are in the custom type range.
|
// Validate checks that all custom records are in the custom type range.
|
||||||
func (c CustomSet) Validate() error {
|
func (c CustomSet) Validate() error {
|
||||||
for key := range c {
|
/* for key := range c {
|
||||||
if key < CustomTypeStart {
|
if key < CustomTypeStart {
|
||||||
return fmt.Errorf("no custom records with types "+
|
return fmt.Errorf("no custom records with types "+
|
||||||
"below %v allowed", CustomTypeStart)
|
"below %v allowed", CustomTypeStart)
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user