From 08acb354746cda712191ed9c6bda5ff7be6815c9 Mon Sep 17 00:00:00 2001 From: Paul Shapiro Date: Thu, 19 Apr 2018 17:26:53 -0400 Subject: [PATCH] cryptonote_utils: applied bitcodernull's inputs sorting fix --- cryptonote_utils/cryptonote_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptonote_utils/cryptonote_utils.js b/cryptonote_utils/cryptonote_utils.js index d27d975..a358698 100644 --- a/cryptonote_utils/cryptonote_utils.js +++ b/cryptonote_utils/cryptonote_utils.js @@ -1645,7 +1645,7 @@ var cnUtil = function(currencyConfig) } //sort ins sources.sort(function(a,b){ - return JSBigInt.parse(a.key_image, 16).compare(JSBigInt.parse(b.key_image, 16)) < 0 + return JSBigInt.parse(a.key_image, 16).compare(JSBigInt.parse(b.key_image, 16)) * -1 ; }); //copy the sorted sources data to tx for (i = 0; i < sources.length; i++) {