Don't allow running in mainnet (#533)

This commit is contained in:
Jonathan Zernik 2020-12-31 16:56:56 -08:00 committed by GitHub
parent 86b2f6895c
commit 63f8d1ccb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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