From 9036d9e8f777642c2477b2cf1c85c0b4c81a728a Mon Sep 17 00:00:00 2001 From: twopir Date: Tue, 3 May 2016 19:20:07 -0700 Subject: [PATCH 1/2] Store the daemon's network on the stdio GUI object --- gui/stdio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/stdio.py b/gui/stdio.py index e47d87f1..36cc1bf6 100644 --- a/gui/stdio.py +++ b/gui/stdio.py @@ -14,7 +14,7 @@ class ElectrumGui: def __init__(self, config, daemon, plugins): self.config = config - network = daemon.network + self.network = daemon.network storage = WalletStorage(config.get_wallet_path()) if not storage.file_exists: print "Wallet not found. try 'electrum create'" From 87b95c51d86305671b49e9dc11691f52208ba6fc Mon Sep 17 00:00:00 2001 From: twopir Date: Sun, 8 May 2016 20:57:02 -0700 Subject: [PATCH 2/2] correct other reference to network object --- gui/stdio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/stdio.py b/gui/stdio.py index 36cc1bf6..b98e24c4 100644 --- a/gui/stdio.py +++ b/gui/stdio.py @@ -31,10 +31,10 @@ class ElectrumGui: self.str_fee = "" self.wallet = Wallet(storage) - self.wallet.start_threads(network) + self.wallet.start_threads(self.network) self.contacts = StoreDict(self.config, 'contacts') - network.register_callback(self.on_network, ['updated', 'banner']) + self.network.register_callback(self.on_network, ['updated', 'banner']) self.commands = [_("[h] - displays this help text"), \ _("[i] - display transaction history"), \ _("[o] - enter payment order"), \