1
0

Rewrite JsonRPC requests using asyncio.

- commands are async
 - the asyncio loop is started and stopped from the main script
 - the daemon's main loop runs in the main thread
 - use jsonrpcserver and jsonrpcclient instead of jsonrpclib
This commit is contained in:
ThomasV
2019-08-15 13:17:16 +02:00
parent fa5302bcfb
commit 54257cbcca
9 changed files with 322 additions and 359 deletions

View File

@@ -93,6 +93,9 @@ class MockLNWallet:
self.localfeatures = LnLocalFeatures(0)
self.pending_payments = defaultdict(asyncio.Future)
def get_invoice_status(self, key):
pass
@property
def lock(self):
return noop_lock()