apollo_storage: add fee_proposal to StorageBlockHeader#13813
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
9dd07bd to
c4778e8
Compare
839f28c to
c31397c
Compare
c31397c to
ed1364d
Compare
PR SummaryMedium Risk Overview Updates storage serialization and test instance generation for Reviewed by Cursor Bugbot for commit 3c1f7e9. Bugbot is set up for automated code reviews on this repo. Configure here. |
| pub state_diff_length: Option<usize>, | ||
| pub n_transactions: usize, | ||
| pub n_events: usize, | ||
| pub fee_proposal: GasPrice, |
There was a problem hiding this comment.
Missing storage version bump for format change
High Severity
Adding fee_proposal to StorageBlockHeader changes the binary serialization format (via auto_storage_serde), but STORAGE_VERSION_BLOCKS is not bumped. The VersionZeroWrapper deserializer reads fields sequentially and returns None when bytes are exhausted, so all block headers stored before this change will silently fail to deserialize. A major version bump is needed to force a re-sync.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit a87a8b7. Configure here.
910b0b7 to
ee05c0f
Compare
a87a8b7 to
6a81e1f
Compare
6a81e1f to
a3ce4d7
Compare
8097471 to
f1086ad
Compare
f9d4b4e to
8a9ab4a
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8a9ab4a. Configure here.
| /// The number of events in this block. | ||
| pub n_events: usize, | ||
| /// SNIP-35: proposer's oracle-derived recommended fee. | ||
| pub fee_proposal: GasPrice, |
There was a problem hiding this comment.
Missing storage version bump for schema change
High Severity
Adding fee_proposal: GasPrice to StorageBlockHeader changes the binary serialization format generated by auto_storage_serde!, but STORAGE_VERSION_BLOCKS in lib.rs is not bumped. Existing database records serialized without this field will fail to deserialize (the macro's deserialize_from returns None when bytes are exhausted), silently making all previously stored block headers unreadable. A major version bump is needed to force a re-sync for existing databases.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 8a9ab4a. Configure here.
8a9ab4a to
c8c52ab
Compare
69830d9 to
816783c
Compare
c8c52ab to
cbbe1ae
Compare
75f5dc1 to
bbe72c6
Compare
cbbe1ae to
89a7e5c
Compare
89a7e5c to
4b3cbc2
Compare
bbe72c6 to
3b4a2a3
Compare
3b4a2a3 to
c83c0d6
Compare
4b3cbc2 to
3c1f7e9
Compare



No description provided.