Skip to content

Commit 56b02b9

Browse files
Crypt-iQcfromknecht
authored andcommitted
small cltv fix
1 parent 9de21d4 commit 56b02b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

persistlog/decayedlog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ outer:
7878

7979
sharedHashes.ForEach(func(k, v []byte) error {
8080
cltv := uint32(binary.BigEndian.Uint32(v))
81-
cltv--
8281
if cltv == 0 {
8382
// Store expired hash in array
8483
expiredCltv = append(expiredCltv, k)
8584
} else {
85+
cltv--
8686
// Store valid <hash, cltv> in map
8787
validCltv[string(k)] = cltv
8888
}

0 commit comments

Comments
 (0)