mirror of
https://github.com/logos-storage/nim-libp2p.git
synced 2026-02-17 20:13:29 +00:00
Fix getOrder() bug.
This commit is contained in:
parent
7138f7e94d
commit
54f9a5be7c
@ -620,7 +620,7 @@ proc getOrder*(remotePubkey, localNonce: openarray[byte],
|
||||
for i in 0 ..< len(mh1.data.buffer):
|
||||
result = int(mh1.data.buffer[i]) - int(mh2.data.buffer[i])
|
||||
if result != 0:
|
||||
if result > 0:
|
||||
if result < 0:
|
||||
result = -1
|
||||
elif result > 0:
|
||||
result = 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user