PR #962 addresses the in-process races between wallet sync, funding classification, and payment graduation. Several persistence and identity questions remain deliberately unresolved.
Known remaining problems:
- Funding classification writes the payment record and pending metadata separately. A failure or crash between them can leave a payment without its candidate history or txid mappings.
- The failed classification package has already been dequeued. Repair may depend on a later LDK rebroadcast, which is not guaranteed for every persisted signing state or counterparty-broadcast transaction.
- If the missing metadata belongs to an RBF funding payment, wallet sync may not map a non-first candidate back to the stable payment ID. It can consequently create a duplicate generic payment or retain incorrect candidate figures.
- If wallet sync records an active RBF candidate before classification completes, its generic record may use the active candidate’s txid as its payment ID. Classification subsequently uses the first candidate’s txid and does not currently reconcile the two records.
- It remains unclear how long mappings for earlier, conflicting, and graduated candidates must be retained.
Relevant discussions:
Follow-up questions/checklist:
This issue intentionally does not prescribe a storage or recovery design.
PR #962 addresses the in-process races between wallet sync, funding classification, and payment graduation. Several persistence and identity questions remain deliberately unresolved.
Known remaining problems:
Relevant discussions:
Follow-up questions/checklist:
DataStoreentries in-memory, add pagination #1024’s payment-store caching changes.This issue intentionally does not prescribe a storage or recovery design.