Skip to content

Commit c0a55ac

Browse files
committed
nil pointer equality check
Signed-off-by: Darren Kellenschwiler <[email protected]>
1 parent 2fa06a0 commit c0a55ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bump.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func NewBUMPFromMerkleTreeAndIndex(blockHeight uint64, merkleTree []*chainhash.H
227227
o := uint64(offset)
228228
thisLeaf := leaf{Offset: &o}
229229
hash := merkleTree[levelOffset+offset]
230-
if hash.IsEqual(&chainhash.Hash{}) {
230+
if hash.IsEqual(nil) {
231231
thisLeaf.Duplicate = &t
232232
} else {
233233
sh := hash.String()

0 commit comments

Comments
 (0)