multi: make validation for keysend stricter
This commit is contained in:
5 files changed
+71
-1
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user