From b0f6b8578ef36559bc243fb7765a5e2e4420d44c Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 2 Aug 2016 10:52:59 +0200 Subject: [PATCH] fix issue #1865 --- lib/transaction.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/transaction.py b/lib/transaction.py index b3717f2c..667a6c48 100644 --- 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)