Repository navigation
Fix UTXO dual-write rollback + normalize mempool storage (rebased #7679) - #7928
Conversation
Signed-off-by: Scott <scottbphone12@gmail.com>
Signed-off-by: Scott <scottbphone12@gmail.com>
Signed-off-by: Scott <scottbphone12@gmail.com>
RTC RewardThis merged PR earned 5 RTC — sent to |
|
| Metric | Value |
|---|---|
| Trust Score | 48/100 |
| Certificate ID | BCOS-697559e5 |
| Tier | L1 (not met) |
What does this mean?
The BCOS (Beacon Certified Open Source) engine scans for:
- SPDX license header compliance
- Known CVE vulnerabilities (OSV database)
- Static analysis findings (Semgrep)
- SBOM completeness
- Dependency freshness
- Test infrastructure evidence
- Review attestation tier
BCOS v2 Engine - Free & Open Source (MIT) - Elyan Labs
|
Thanks for rebasing and merging my contributions in #7927 and #7928. Could you check the reward attribution for these two rebased PRs together?
This looks like the automatic reward may have followed the author of the replacement PR rather than the original contributor. The comments alone do not establish the actual ledger settlement, so please verify whether these rewards were separately credited or corrected before making any additional payment. My original PRs used payout ID |
…8486) Two tests still encoded the pre-#7928 behaviour: "the UTXO transfer succeeds (200) and the account write is skipped" when the sender's account balance cannot cover it. #7928 deliberately made that path fail closed (409 DUAL_WRITE_SHADOW_BALANCE) and roll the UTXO application back, because letting the spend through while skipping the account write is exactly the success-path divergence dual-write exists to prevent - /utxo/integrity would report the models disagreeing while the endpoint returned ok=True. The tests have been red ever since. Assert the real contract: 409 with the code and shadow_balance_i64, both balances unchanged, and (new) the sender's UTXO value still unspent, which is what proves the rollback. Renamed skipped_* -> refused_* so the names match the behaviour; no other references to those names exist. This matters more now that dual-write is enabled in production. node/tests/test_dual_write_shadow_balance.py: 9 passed (was 7 passed, 2 failed). CI tests/: 4024 passed, 0 failed. The 13 remaining failures in node/test_utxo_*_poc.py are pre-existing and unchanged by this commit (stale PoCs that assert already-fixed bugs are still present). Signed-off-by: Scott <scottbphone12@gmail.com> Co-authored-by: Scott <scottbphone12@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Rebase of #7679 by @qiann0512-gif onto current main (it had drifted into conflict). Security-positive UTXO hardening:
DUAL_WRITE_SHADOW_BALANCE), closing a UTXO/account divergence hole.mempool_addnow stores only whitelisted fields — strips caller-supplied_allow_minting, oversizedspending_proof, and junk before persisting.# fetchall-okannotations on two already-paginated queries.Both conflicts (two test files) were additive — kept both test sets. 141 tests + 39 subtests pass.
Closes #7679.
Co-authored-by: qiann0512-gif
Signed-off-by: Scott scottbphone12@gmail.com