1
0

lnhtlc: speed-up methods for recent ctns

we maintain a set of interesting htlc_ids
This commit is contained in:
SomberNight
2020-03-06 21:54:05 +01:00
parent 2c617c3b00
commit ec7473789e
4 changed files with 130 additions and 31 deletions

View File

@@ -124,7 +124,7 @@ FALLBACK_NODE_LIST_MAINNET = [
class PaymentInfo(NamedTuple):
payment_hash: bytes
amount: int
amount: int # in satoshis
direction: int
status: int
@@ -934,6 +934,7 @@ class LNWallet(LNWorker):
success = payment_attempt_log.success
if success:
break
self.logger.debug(f'payment attempts log for RHASH {key}: {repr(log)}')
self.network.trigger_callback('invoice_status', key)
return success