Fix getOrder() bug.

This commit is contained in:
cheatfate 2019-09-12 23:11:50 +03:00
parent 7138f7e94d
commit 54f9a5be7c
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 1 additions and 1 deletions

View File

@ -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