electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit b0f6b8578ef36559bc243fb7765a5e2e4420d44c
parent 84b6a1252a3c5ae93943ab102512746afccd43b3
Author: ThomasV <thomasv@electrum.org>
Date:   Tue,  2 Aug 2016 10:52:59 +0200

fix issue #1865

Diffstat:
Mlib/transaction.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/transaction.py b/lib/transaction.py @@ -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)