-
Notifications
You must be signed in to change notification settings - Fork 180
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
[Storehouse] Fix dynamic bootstrapping for storehouse #5165
Conversation
@@ -801,12 +801,12 @@ func (exeNode *ExecutionNode) LoadRegisterStore( | |||
|
|||
if !bootstrapped { | |||
checkpointFile := path.Join(exeNode.exeConf.triedir, modelbootstrap.FilenameWALRootCheckpoint) | |||
root, err := exeNode.builder.RootSnapshot.Head() | |||
sealedRoot, err := node.State.Params().SealedRoot() |
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.
In dynamic bootstrapping, the sealed root is lower than finalized root (RootSnapshot.Head returns finalized root), EN needs to load [sealedRoot + 1, finalizedRoot] block range on startup.
It is now consistent with how the existing block loader works
Note, block below finalizedRoot can still be retrieved by height.
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #5165 +/- ##
=======================================
Coverage 56.49% 56.49%
=======================================
Files 979 979
Lines 93159 93175 +16
=======================================
+ Hits 52628 52640 +12
- Misses 36626 36634 +8
+ Partials 3905 3901 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
ee17ecf
to
2c55334
Compare
2c55334
to
4c6e1f1
Compare
7f9872a
to
1db40c6
Compare
1db40c6
to
11e9567
Compare
Close #5183
This PR fixes loading blocks on startup for storehouse when the node is dynamic bootstrapped