You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: a node send waiting in its queue pays a contact blocked meanwhile #2130
A Paykit payment request sent on the node is authorized again before its last node-side waits, but not after them. If the contact is blocked or deleted during those waits, the payment still goes out:
Lightning: the recheck runs right before the send enters ServiceQueue.LDK, so a block landing while the send waits behind other node work is not seen.
On-chain: LightningRepo.sendOnChain rechecks before retainPreparedReceipt, so a change committed during that receipt write still reaches the native broadcast (LightningService).
The block check reads the Paykit SDK (linkedPeers()), which suspends and can't run on the node queue. Covering it needs an authorization the queued step can read, for example a refusal flag ensurePaymentAllowed keeps.
Expected: a contact blocked while a node send waits there is refused before the send, and nothing is sent.
Activity