myAiohttpClient: add id counter, and rename to JsonRPCClient
This commit is contained in:
@@ -26,7 +26,7 @@ from . import constants, util
|
||||
from . import keystore
|
||||
from .util import profiler
|
||||
from .invoices import PR_TYPE_LN, PR_UNPAID, PR_EXPIRED, PR_PAID, PR_INFLIGHT, PR_FAILED, PR_ROUTING, LNInvoice, LN_EXPIRY_NEVER
|
||||
from .util import NetworkRetryManager, myAiohttpClient
|
||||
from .util import NetworkRetryManager, JsonRPCClient
|
||||
from .lnutil import LN_MAX_FUNDING_SAT
|
||||
from .keystore import BIP32_KeyStore
|
||||
from .bitcoin import COIN
|
||||
@@ -533,7 +533,7 @@ class LNWallet(LNWorker):
|
||||
continue
|
||||
try:
|
||||
async with make_aiohttp_session(proxy=self.network.proxy) as session:
|
||||
watchtower = myAiohttpClient(session, watchtower_url)
|
||||
watchtower = JsonRPCClient(session, watchtower_url)
|
||||
watchtower.add_method('get_ctn')
|
||||
watchtower.add_method('add_sweep_tx')
|
||||
for chan in self.channels.values():
|
||||
|
||||
Reference in New Issue
Block a user