fix: snapshot CoinJoin collaterals before random fee charging - #7598
Conversation
|
Warning Review limit reached
Next review available in: 5 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Comment |
|
✅ Review complete (commit ea1deec) |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Codex/Sol only (Phase 2 disabled)
The exact-head diff safely copies the CoinJoin session collateral references while holding cs_coinjoin, then releases the lock before collateral submission, preserving object lifetime, lock ordering, and fee-selection behavior. No in-scope defects or actionable review findings were identified.
Source: reviewer backend model gpt-5.6-sol; final verifier backend model gpt-5.6-sol. Orchestration-only: openclaw-agent/cliproxy/gpt-5.6-sol (not reviewer evidence).
Validated zero-blocker Codex/Sol precheck evidence was promoted to final because Phase 2 (Sonnet/Opus) is temporarily disabled. This is Codex/Sol-only final validation, not Codex + Sonnet/Opus coverage.
Review provenance
- Codex reviewers:
gpt-5.6-sol— general (completed) - Verifier:
gpt-5.6-sol— verifier - Sonnet/Opus: not run (Phase 2 disabled — temporary Codex/Sol-only final)
- Secondary pass: disabled (
temporary_phase2_sonnet_disable)
Issue being fixed or feature implemented
ChargeRandomFees()iterates the live CoinJoin session collateral vector without holding the session lock. A concurrent session reset can clear that vector while it is being traversed, invalidating the iterator and transaction reference.What was done?
cs_coinjoin.The copied
CTransactionRefvalues keep each collateral alive, and the existing fee-selection behavior is unchanged.How Has This Been Tested?
test/test_dashwith depends on macOS arm64 using--enable-debug --enable-werror.coinjoin_inouts_tests(8 cases).coinjoin_tests(12 cases).Breaking Changes
None.
Checklist:
This pull request was created by Codex.