electrum

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

commit cdcd4d72157fe473a5ae5b53efdd8d7021576f75
parent 0fa48b926cd4e9b23f0a096d4c2d69cedc5e1523
Author: Neil Booth <kyuupichan@gmail.com>
Date:   Wed,  2 Sep 2015 11:56:53 +0900

Fix 'tuple' object has no attribute 'copy'

Occurred when switching interfaces and there were unanswered
requests that need resending.  This bug isn't new; it's been
there since at least 3rd June.

Diffstat:
Mlib/interface.py | 2--
Mlib/network.py | 2+-
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/interface.py b/lib/interface.py @@ -243,8 +243,6 @@ class Interface: def queue_request(self, request): '''Queue a request.''' - if type(request) != type({}): - traceback.print_exc(file=sys.stderr) self.request_time = time.time() self.unsent_requests.append(request) diff --git a/lib/network.py b/lib/network.py @@ -261,7 +261,7 @@ class Network(util.DaemonThread): self.cached_responses = {} self.print_error('sending subscriptions to', self.interface.server, len(self.unanswered_requests), len(self.subscribed_addresses)) for r in self.unanswered_requests.values(): - self.interface.queue_request(r) + self.interface.queue_request(r[0]) for addr in self.subscribed_addresses: self.queue_request('blockchain.address.subscribe', [addr]) self.queue_request('server.banner', [])