tfix issue #1865 - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit b0f6b8578ef36559bc243fb7765a5e2e4420d44c
DIR parent 84b6a1252a3c5ae93943ab102512746afccd43b3
HTML Author: ThomasV <thomasv@electrum.org>
Date: Tue, 2 Aug 2016 10:52:59 +0200
fix issue #1865
Diffstat:
M lib/transaction.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/lib/transaction.py b/lib/transaction.py
t@@ -859,8 +859,8 @@ class Transaction:
threshold = 57600000
weight = 0
for txin in self.inputs():
- age = wallet.get_confirmations(txin["prevout_hash"])[0]
- weight += txin["value"] * age
+ height, conf, timestamp = wallet.get_tx_height(txin["prevout_hash"])
+ weight += txin["value"] * conf
priority = weight / size
print_error(priority, threshold)