Skip to content

Add tests with sentinel StateMapValue#2769

Draft
citizen-stig wants to merge 2 commits intodevfrom
nikolai/verify-sentinel-value-in-state-map
Draft

Add tests with sentinel StateMapValue#2769
citizen-stig wants to merge 2 commits intodevfrom
nikolai/verify-sentinel-value-in-state-map

Conversation

@citizen-stig
Copy link
Copy Markdown
Member

@citizen-stig citizen-stig commented Apr 21, 2026

Description

Root cause

rockbound's get_historical_value_raw has if value_bytes.is_empty() { return Ok(None); } — it silently conflates "key not found" with "key exists with empty value".

Sovereign-Labs/rockbound#50


  • I have updated CHANGELOG.md with a new entry if my PR makes any breaking changes or fixes a bug. If my PR removes a feature or changes its behavior, I provide help for users on how to migrate to the new behavior.
  • I have carefully reviewed all my Cargo.toml changes before opening the PRs. (Are all new dependencies necessary? Is any module dependency leaked into the full-node (hint: it shouldn't)?)

Testing

Added new tests

Docs

No updates

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