Merge pull request #1785 from twopir/patch-1
Store the daemon's network on the stdio GUI object
This commit is contained in:
commit
8a5221ed9a
|
@ -14,7 +14,7 @@ class ElectrumGui:
|
||||||
|
|
||||||
def __init__(self, config, daemon, plugins):
|
def __init__(self, config, daemon, plugins):
|
||||||
self.config = config
|
self.config = config
|
||||||
network = daemon.network
|
self.network = daemon.network
|
||||||
storage = WalletStorage(config.get_wallet_path())
|
storage = WalletStorage(config.get_wallet_path())
|
||||||
if not storage.file_exists:
|
if not storage.file_exists:
|
||||||
print "Wallet not found. try 'electrum create'"
|
print "Wallet not found. try 'electrum create'"
|
||||||
|
@ -31,10 +31,10 @@ class ElectrumGui:
|
||||||
self.str_fee = ""
|
self.str_fee = ""
|
||||||
|
|
||||||
self.wallet = Wallet(storage)
|
self.wallet = Wallet(storage)
|
||||||
self.wallet.start_threads(network)
|
self.wallet.start_threads(self.network)
|
||||||
self.contacts = StoreDict(self.config, 'contacts')
|
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"), \
|
self.commands = [_("[h] - displays this help text"), \
|
||||||
_("[i] - display transaction history"), \
|
_("[i] - display transaction history"), \
|
||||||
_("[o] - enter payment order"), \
|
_("[o] - enter payment order"), \
|
||||||
|
|
Loading…
Reference in New Issue