mirror of
https://github.com/yzernik/squeaknode.git
synced 2026-08-18 13:09:08 +02:00
Don't allow running in mainnet (#533)
This commit is contained in:
parent
86b2f6895c
commit
63f8d1ccb3
1 changed files with 3 additions and 0 deletions
|
|
@ -199,6 +199,9 @@ def main():
|
|||
def run_server(config):
|
||||
# load the network
|
||||
network = load_network(config)
|
||||
if network == "mainnet":
|
||||
logger.error("Squeaknode is not ready for mainnet.")
|
||||
sys.exit(1)
|
||||
SelectParams(network)
|
||||
|
||||
# load the db
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue