config: no longer singleton. it is passed to Wallet.__init__
The few other cases that used SimpleConfig.get_instance() now either get passed a config instance, or they try to get a reference to something else that has a reference to a config. (see lnsweep, qt/qrcodewidget, qt/qrtextedit)
This commit is contained in:
@@ -308,7 +308,7 @@ class ElectrumGui(Logger):
|
||||
# return if wallet creation is not complete
|
||||
if storage is None or storage.get_action():
|
||||
return
|
||||
wallet = Wallet(storage)
|
||||
wallet = Wallet(storage, config=self.config)
|
||||
wallet.start_network(self.daemon.network)
|
||||
self.daemon.add_wallet(wallet)
|
||||
return wallet
|
||||
|
||||
Reference in New Issue
Block a user