fix: tx_hash -> prevout_hash
authorthomasv <thomasv@gitorious>
Thu, 3 Oct 2013 16:58:50 +0000 (18:58 +0200)
committerthomasv <thomasv@gitorious>
Thu, 3 Oct 2013 16:58:50 +0000 (18:58 +0200)
lib/transaction.py

index 73ddd7b..c6b0b03 100644 (file)
@@ -708,7 +708,7 @@ class Transaction:
                 return True
         sum = 0
         for i in self.inputs:
-            age = verifier.get_confirmations(i["tx_hash"])[0]
+            age = verifier.get_confirmations(i["prevout_hash"])[0]
             sum += i["value"] * age
         priority = sum / size
         print_error(priority, threshold)