constants: rm set_testnet/set_mainnet fns with AbstractNet.set_as_network

This commit is contained in:
SomberNight
2024-09-16 15:27:45 +00:00
parent 778aea340e
commit 1257f21b1b
11 changed files with 28 additions and 47 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ loop, stopping_fut, loop_thread = create_and_start_event_loop()
time.sleep(2)
if IS_TESTNET:
constants.set_testnet()
constants.BitcoinTestnet.set_as_network()
daemon = Daemon(config, listen_jsonrpc=False)
network = daemon.network
assert network.asyncio_loop.is_running()