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…
Reference in New Issue