-
Notifications
You must be signed in to change notification settings - Fork 44
Blockchain updates for L2 extension #1430
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?
Conversation
pkg/state/accounts_data_storage.go
Outdated
@@ -242,7 +242,7 @@ func (s *accountsDataStorage) entryBytes(addr proto.Address, entryKey string) ([ | |||
func (s *accountsDataStorage) retrieveEntries(addr proto.Address) ([]proto.DataEntry, error) { | |||
addrNum, err := s.addrToNum(addr) | |||
if err != nil { | |||
return nil, err | |||
return nil, proto.ErrNotFound |
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.
err
should be returned and wrapped with proto.ErrNotFound
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.
Add check errors.Is(err, keyvalue.ErrNotFound)
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.
Needs to be fixed
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.
Add check errors.Is(err, keyvalue.ErrNotFound)
and only then error should be wrapped
* Support rollback draft * Moved state to extension * Added cache for retrieving contract values after rollback * Fixed linter issues * Exported functions for mocking * Changed the mock interface * Added a rollback test * Fixed linter issues * Publish the first 100 history entries before start * Added constant keys handling * Fixed rollback check, added needed fields for history entry * Fixed the node blocking while the extension is not ready
No description provided.