Skip to content

feat: port contract storage quota to v0.123-dev - #1729

Merged
MuncleUscles merged 2 commits into
v0.123-devfrom
codex/fix-contract-storage-quota-accounting-v123
Aug 14, 2026
Merged

feat: port contract storage quota to v0.123-dev#1729
MuncleUscles merged 2 commits into
v0.123-devfrom
codex/fix-contract-storage-quota-accounting-v123

Conversation

@MuncleUscles

Copy link
Copy Markdown
Member

Summary

Validation

  • 13 passedtests/unit/test_contract_storage_quota.py and tests/unit/test_validator_manager_snapshot.py
  • pre-commit hooks passed during both commits
  • git diff --check origin/v0.123-dev...HEAD passed

* feat: cap per-contract daily snapshot storage

Add an optional MAX_CONTRACT_SNAPSHOT_BYTES_PER_DAY admission check on
eth_sendRawTransaction. Cost is 2x pg_column_size(current_state.data)
(accepted + finalized slots) without hydrating JSONB. Redis meters the
UTC-day total; the first write of the day is always allowed so a fat
contract is not hard-locked. Unset env and Redis errors fail open.

* fix: recover consensus after validator wipe/recreate

Smoke deploys raced the mock-validator teardown: workers froze a
0-node snapshot, then release() blocked on an uncommitted
rotation_count UPDATE so the claim never retried.

Reload from the registry when the cached snapshot is empty, and
commit reset_transaction_rotation_count like the other rotation
writes.

* fix: drop Rally mention from sandbox quota errors

* fix: make contract storage quota atomic
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 10f04fa6-37d1-4227-a020-f2c26b7b885a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@MuncleUscles
MuncleUscles marked this pull request as ready for review August 14, 2026 14:48

Copy link
Copy Markdown
Member Author

/run-e2e

@MuncleUscles
MuncleUscles merged commit 93304aa into v0.123-dev Aug 14, 2026
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant