-
Notifications
You must be signed in to change notification settings - Fork 234
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
refactor(storage): cleanup heades table #1293
Conversation
c02f331
to
ec2b38d
Compare
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.
LGTM 👍
As for the fallible conversions - feel free to rework them if you deem the current way too ugly 😃
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.
LGTM % @kkovaacs 's comments
It was migrating instead of checking the current version.
3a863ef
to
a704ff8
Compare
Co-authored-by: Krisztian Kovacs <krisztian@equilibrium.co> Review changes and fixes.
a704ff8
to
e8dc9c8
Compare
I renamed |
This PR refactors the headers table in the database, aligning it with p2p requirements.
p2p introduces requirements for headers to be a much more standalone concept e.g. the block hash should be calculated only from properties in the header. This PR adds the missing fields to storage, and also renames some things.
Actual changes to the headers table:
starknet_blocks
toheaders
root
column renamed tostorage_commitment
transaction_count
andevent_count
state_commitment
which previously was calculated on demand@CHr15F0x I have no idea how to update the proptests for these new additions?
I would also appreciate thinking if I missed any locations which rely on this information? I have sync and p2p changed so I think its all.