-
Notifications
You must be signed in to change notification settings - Fork 69
apollo_storage: add fee_proposal to StorageBlockHeader #13813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -183,6 +183,7 @@ auto_storage_serde! { | |
| 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. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing storage version bump for format changeHigh Severity Adding Additional Locations (1)Reviewed by Cursor Bugbot for commit a87a8b7. Configure here. |
||
| } | ||
| pub struct BlockHeaderCommitments { | ||
| pub transaction_commitment: TransactionCommitment, | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing storage version bump for schema change
High Severity
Adding
fee_proposal: GasPricetoStorageBlockHeaderchanges the binary serialization format generated byauto_storage_serde!, butSTORAGE_VERSION_BLOCKSinlib.rsis not bumped. Existing database records serialized without this field will fail to deserialize (the macro'sdeserialize_fromreturnsNonewhen 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)
crates/apollo_storage/src/serialization/serializers.rs#L185-L186Reviewed by Cursor Bugbot for commit 8a9ab4a. Configure here.