Repository navigation
Closed as not planned
Milestone
Description
Observed
Paying a saved contact whose private payment path is dead never fails fast. The amount screen does not open; the app keeps retrying ("Encrypted Link Handshake is still in progress", "private link pending") and shows no "contact unreachable" message. Payment requests and first subscription payments to that contact end in "First Payment Failed" after about 30 s. Paying the same person by entering their current pubky works at once.
A dead path here is, for example, a saved contact whose Pubky identity no longer exists: the payee's identity was replaced, so the saved key points at an identity that will never link again.
Steps to reproduce
- Save a contact that has private contact payments enabled.
- Make the saved identity unreachable, for example by replacing the payee's identity (in regtest, restarting a fixture payee whose pubky changes on restart).
- Send → Contact → the saved contact: it stalls or returns "private link pending".
- Send → Enter manually → the payee's current pubky: the payment opens.
Code (master at 1764309)
PrivatePaykitRepo.beginSavedContactPayment(app/src/main/java/to/bitkit/repositories/PrivatePaykitRepo.kt:569): a saved contact with a private payment path is only paid privately, never through its public endpoints (KDoc at:560-568). There is no fallback when the private path cannot work.- Saved contact retries:
beginSavedContactPaymentWithRetry(:978) retries onWaitingForUpdatedPaymentListat 1, 3 and 8 s (privatePaymentResolutionRetryDelays,:112). - Payment requests and subscriptions:
beginPaymentRequestWaitingForUpdatedList(:591) retries 14 times at 2 s (paymentListRetryDelays,:111), about 28 s. - Every attempt runs the SDK call under the single operation lock (
PaykitSdkOperationLock.withLock,app/src/main/java/to/bitkit/services/PaykitSdkOperationLock.kt:32), and the call itself is non-cancellable (PaykitSdkService.kt:1887). Pay can queue behind background publish and link work, and has no timeout of its own. - Typing a pubky that is not a saved contact takes
publicPaykitRepo.beginPayment(PrivatePaykitRepo.kt:573), which needs no private link, list version or lock, which is why it works.
Leads ruled out
- The public path: it works for the same payee, so endpoints and the payee's wallet are fine.
- Deleting other contacts does not help.
Open
- Whether the app should mark a saved contact unreachable once its link cannot be established, and surface that within a few seconds instead of retrying.
- Whether a saved contact that cannot be paid privately should offer its public endpoints, which the current design rules out.
Activity
ovitrif commentedon Nov 9, 2026
Triage: in 3.2.0, a Paykit contact-payment bug on master, not an RC blocker. Twin: synonymdev/bitkit-ios#1254. On the project at 📋 To do.
ovitrif commentedon Nov 13, 2026
Not reproduced on master, closing. Tested at ab92618, which has no app changes since 61a48f8, on a regtest Android 15 emulator. The stack was bitkit-docker main, whose Paykit fixtures run paykit-rs 0.1.1-rc8 (synonymdev/bitkit-docker#38). The payee was the
fixture-issuer, saved as a contact while its private link was never completed.A saved contact whose private link never completes fails within about 2 s with a clear message:
RecoveryRequirederror for a peer that is still linking.beginContactPaymentmaps it toPrivateLinkPendingand that toast at once. The saved-contact retries cover onlyWaitingForUpdatedPaymentList.android-send-contact2x.mp4
android-contact-pay2x.mp4
android-linked2x.mp4
Why #1732's J1 stalled on the saved contact:
fixture-issuernever answers a handshake by itself. It links and sends its private payment list only when its/link,/syncand/endpointsare called.The replaced identity in this issue's steps was a guess when I filed it, since the failures seen came from that fixture. I did not stage a replaced identity separately.
Payment requests and first subscription payments: for a contact that isn't linked,
beginPaymentRequestWaitingForUpdatedListgetsPrivateLinkPendingon its first attempt and fails at once. Its wait of 14 × 2 s runs only for a linked payee whose newer private payment list hasn't arrived yet, and it ends in "First Payment Failed". I did not run that case here.Still open from this issue, for the team to decide:
Twin: synonymdev/bitkit-ios#1254.