No need to pass daemon and network together
The daemon has the network
This commit is contained in:
@@ -66,13 +66,12 @@ class OpenFileEventFilter(QObject):
|
||||
|
||||
class ElectrumGui:
|
||||
|
||||
def __init__(self, config, network, daemon, plugins):
|
||||
def __init__(self, config, daemon, plugins):
|
||||
set_language(config.get('language'))
|
||||
# Uncomment this call to verify objects are being properly
|
||||
# GC-ed when windows are closed
|
||||
#network.add_jobs([DebugMem([Abstract_Wallet, SPV, Synchronizer,
|
||||
# ElectrumWindow], interval=5)])
|
||||
self.network = network
|
||||
self.config = config
|
||||
self.daemon = daemon
|
||||
self.plugins = plugins
|
||||
|
||||
@@ -109,7 +109,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||
|
||||
self.gui_object = gui_object
|
||||
self.config = config = gui_object.config
|
||||
self.network = gui_object.network
|
||||
self.network = gui_object.daemon.network
|
||||
self.invoices = gui_object.invoices
|
||||
self.contacts = gui_object.contacts
|
||||
self.tray = gui_object.tray
|
||||
|
||||
Reference in New Issue
Block a user