From 61bdccbda2d1822a95ad5ec722bdbd42219f01fa Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Wed, 3 Jun 2020 15:09:00 -0700 Subject: [PATCH] Load lightning client on server startup (#17) --- squeaknode/server/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/squeaknode/server/main.py b/squeaknode/server/main.py index 3ebf3342..0533e7e8 100644 --- a/squeaknode/server/main.py +++ b/squeaknode/server/main.py @@ -113,10 +113,10 @@ def run_server(config): SelectParams(config['DEFAULT']['network']) print('starting lightning client here...', flush=True) - # lightning_client = load_lightning_client(config) + lightning_client = load_lightning_client(config) # db_factory = load_db_factory(config) # node = load_client(blockchain_client, lightning_client, signing_key, db_factory) - handler = load_handler(None) + handler = load_handler(lightning_client) # start rpc server start_rpc_server(handler)