From 107adb186f0832707cc8f7751591b4931de2e945 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 15 Mar 2017 18:05:05 +0100 Subject: [PATCH] sort unconfirmed transactions by height --- lib/wallet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wallet.py b/lib/wallet.py index e695ff8f6..7d9fe2a27 100644 --- a/lib/wallet.py +++ b/lib/wallet.py @@ -347,7 +347,7 @@ class Abstract_Wallet(PrintError): elif y > 0: return y, 0 else: - return 1e12, 0 + return 1e12 - y, 0 def is_found(self): return self.history.values() != [[]] * len(self.history)