From cb4d3a78b475b2a586409f23e58f5406e515027f Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 13 Jun 2015 16:46:44 +0300 Subject: [PATCH 1/3] verifier: fix typo --- lib/verifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/verifier.py b/lib/verifier.py index b221856aa..35a8a6395 100644 --- a/lib/verifier.py +++ b/lib/verifier.py @@ -92,7 +92,7 @@ class SPV(util.DaemonThread): def undo_verifications(self, height): - tx_hashes = selt.wallet.undo_verifications(height) + tx_hashes = self.wallet.undo_verifications(height) for tx_hash in tx_hashes: self.print_error("redoing", tx_hash) self.merkle_roots.pop(tx_hash, None) From c324d21107fdaff8dbddc21a9386ee7e4aa8414e Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 13 Jun 2015 16:53:37 +0300 Subject: [PATCH 2/3] transaction: added missing import for "traceback.print_exc(file=sys.stdout)" statement at line 361 --- lib/transaction.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/transaction.py b/lib/transaction.py index 57339849c..6d1eee1d0 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -24,6 +24,7 @@ import bitcoin from bitcoin import * from util import print_error import time +import sys import struct # From 90076b0b791425b3fe62ad06f6f551237eb43d47 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 13 Jun 2015 16:57:32 +0300 Subject: [PATCH 3/3] util: add print_msg() method to DaemonThread it is used by at synchornizer.py, line 173 --- lib/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/util.py b/lib/util.py index 3003a0c7c..22dc3887c 100644 --- a/lib/util.py +++ b/lib/util.py @@ -45,7 +45,10 @@ class DaemonThread(threading.Thread): self.running = False def print_error(self, *msg): - print_error("[%s]"%self.__class__.__name__, *msg) + print_error("[%s]" % self.__class__.__name__, *msg) + + def print_msg(self, *msg): + print_msg("[%s]" % self.__class__.__name__, *msg)