Repository navigation
fix(platform-wallet): serialize pending crypto writes with identity removal - #4649
Conversation
Point the test helper documentation to apply_upserts. Co-Authored-By: Codex <[email protected]>
…emoval Keep the wallet manager write guard through persistence in all three pending-crypto enqueue paths. Add deterministic regression tests for exclusion during storage and rejection after owner removal. Co-Authored-By: Codex <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change extends the wallet-manager write lock through pending contact-crypto persistence. New test fixtures and tests verify that identity removal prevents subsequent enqueue writes. ChangesPending crypto serialization
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Pending contact-crypto writes are now serialized with identity removal, preventing stale records from being persisted. The covered regression tests and reported checks leave no merge-blocking risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
🕓 Queued for automated review — 19th in line, estimated start in ~6 h (commit 003d7b1)
|
llbartekll
left a comment
There was a problem hiding this comment.
Reviewed at 003d7b1. The write-guard scope correctly serializes all three pending-contact-crypto persistence paths with identity removal, and the regression coverage exercises both lock exclusion and post-removal enqueue rejection. No blocking findings.
Prevent background DashPay queue writes from leaving stale records after an identity is removed. Also repair the storage writer's rustdoc link. Follow-up to #4496.
Issue being fixed or feature implemented
A queue write could reach storage after a concurrent identity removal had finished its cleanup. This race predates #4496; the separate documentation issue comes from the writer rename in that PR.
What was done?
ensure_existsdocumentation toapply_upserts.How Has This Been Tested?
sqlite_identity_hard_deletetests pass, including V018 migration with foreign keys enabled and disabled.cargo fmt -p platform-wallet -p platform-wallet-storage -- --checkcargo clippy -p platform-wallet -p platform-wallet-storage --all-targets --all-features --locked -- --no-deps -D warningsThe concurrency tests use a mock SDK and a checking persistence backend; no network is required.
Breaking Changes
None.
Checklist:
For repository code-owners and collaborators only
🤖 Co-authored by Claudius the Magnificent AI Agent
Summary by CodeRabbit
Bug Fixes
Tests
Documentation