-
Notifications
You must be signed in to change notification settings - Fork 793
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
Implement state block version 2 #2899
base: develop
Are you sure you want to change the base?
Conversation
What's the plan for this change? Will it be included in v22 or v23? |
It won't be in v22, on the right it states the milestone as v23 but it's possible to change. |
Crossing my fingers to be included in v23, this is one of the most positive additions IMO. I can see sooo many optimization after this change is deployed in the live net Great job guys and @wezrule |
This adds 5 new fields to the state block:
refresh()
now update the block signature and changed function torebuild()
simple_block_validation ()
is used in various places which can do some rudimentary checks on state v2 blocks, anything which doesn't require ledger processing (of previous/source blocks for instance).has_epoch_link
which can determine if the link field belongs to an epoch link or a self-signed epoch."version"
has been changed to"work_version"
.(Bug) - The public key used when verifying a send to an epoch link is the epoch account, so it will always fail signature validation currently
TSAN run was clean.
I have made a diagram of the core test
ledger.state_blocks_v2
here: