-
Notifications
You must be signed in to change notification settings - Fork 274
PARTIAL sync: coreth PR #963,981,1009: nodeType w/o serialization
#1815
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
base: master
Are you sure you want to change the base?
PARTIAL sync: coreth PR #963,981,1009: nodeType w/o serialization
#1815
Conversation
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.
I'm still concerned about new nodes receiving an old format or old nodes receiving the new format and being unable to properly sync. If this concerned is deemed unimportant/fixed, then this looks good to me
The serialization changes certainly could be breaking - I will defer to @ceyonur. Additionally if they are, maybe the Granite upgrade would work well? |
| Start []byte `serialize:"true"` | ||
| End []byte `serialize:"true"` | ||
| Limit uint16 `serialize:"true"` | ||
| NodeType NodeType `serialize:"false"` |
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.
| nodeType := leafsRequest.NodeType | ||
| // TODO(JonathanOppenheimer):Handle legacy requests where NodeType was not serialized (defaults to 0) | ||
| // In this interim period, we treat NodeType 0 as StateTrieNode | ||
| if nodeType == 0 { |
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.
here we manually set the type.
nodeType and related items nodeType w/o serialization
Why this should be merged
This breaks up #1679