mirror of
https://github.com/logos-storage/nim-libp2p.git
synced 2026-05-20 16:39:31 +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):
|
for i in 0 ..< len(mh1.data.buffer):
|
||||||
result = int(mh1.data.buffer[i]) - int(mh2.data.buffer[i])
|
result = int(mh1.data.buffer[i]) - int(mh2.data.buffer[i])
|
||||||
if result != 0:
|
if result != 0:
|
||||||
if result > 0:
|
if result < 0:
|
||||||
result = -1
|
result = -1
|
||||||
elif result > 0:
|
elif result > 0:
|
||||||
result = 1
|
result = 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user