multi: make validation for keysend stricter

This commit is contained in:
ziggie committed 2025-03-25 04:42:03 -05:00
1 parent 5d921723b1
commit 013e408abe
5 files changed
+71 -1

No files matched your search

+8 -1
View File
@@ -1,6 +1,8 @@
package record
import "fmt"
import (
"fmt"
)
const (
// CustomTypeStart is the start of the custom tlv type range as defined
@@ -22,3 +24,8 @@ func (c CustomSet) Validate() error {
return nil
}
// IsKeysend checks if the custom records contain the key send type.
func (c CustomSet) IsKeysend() bool {
return c[KeySendType] != nil
}