follow-up: SimpleConfig is supposed to be singleton
see cefa4762ba
and #5629
This commit is contained in:
@@ -6,6 +6,7 @@ import asyncio
|
||||
from electrum.network import Network
|
||||
from electrum.util import print_msg, create_and_start_event_loop
|
||||
from electrum.synchronizer import SynchronizerBase
|
||||
from electrum.simple_config import SimpleConfig
|
||||
|
||||
|
||||
try:
|
||||
@@ -14,9 +15,11 @@ except Exception:
|
||||
print("usage: watch_address <bitcoin_address>")
|
||||
sys.exit(1)
|
||||
|
||||
config = SimpleConfig()
|
||||
|
||||
# start network
|
||||
loop = create_and_start_event_loop()[0]
|
||||
network = Network()
|
||||
network = Network(config)
|
||||
network.start()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user