mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
df2ecd6bc5
This commit fixes a potential blocking when notifying invoice updates. When a new subscription client is created followed by an immediate cancel, it's likely the client will be removed from the registry's map(noop) and then added to its map again. This subscription will then be kept in registry until lnd is restarted. Another more serious issue is when multiple subscriptions are made for the same invoice, when the above case happens, other subscriptions may never send invoice updates because a previous client has a stopped notification queue that blocks following notifications. |
||
---|---|---|
.. | ||
interface.go | ||
invoice_expiry_watcher_test.go | ||
invoice_expiry_watcher.go | ||
invoiceregistry_test.go | ||
invoiceregistry.go | ||
log.go | ||
resolution_result.go | ||
resolution.go | ||
test_utils_test.go | ||
update.go |