Comment fixes
License: MIT Signed-off-by: Dirk McCormick <dirkmdev@gmail.com>
Dirk McCormick committed
Jan 30, 2018 at 22:47 UTC
e980e68f8667e18831283aebd218a7b777022f54
2 files changed
+3
-3
namesys/selector.go
+2
-2
@@ -10,8 +10,8 @@ import (
10
proto "gx/ipfs/QmZ4Qi3GaRbjcx28Sme5eMH7RQjGkt8wHxt2a65oLaeFEV/gogo-protobuf/proto"
11
)
12
13
-// Selects best record by checking which has the highest sequence number
14
-// and latest EOL
13
+// IpnsSelectorFunc selects the best record by checking which has the highest
14
+// sequence number and latest EOL
15
func IpnsSelectorFunc(k string, vals [][]byte) (int, error) {
16
var recs []*pb.IpnsEntry
17
for _, v := range vals {
namesys/validator.go
+1
-1
@@ -29,7 +29,7 @@ var ErrInvalidPath = errors.New("record path invalid")
29
// signature verification
30
var ErrSignature = errors.New("record signature verification failed")
31
32
-// Returns a ValidChecker for IPNS records
32
+// NewIpnsRecordValidator returns a ValidChecker for IPNS records
33
// The validator function will get a public key from the KeyBook
34
// to verify the record's signature
35
func NewIpnsRecordValidator(kbook pstore.KeyBook) *record.ValidChecker {