Skip to content

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

Open
wants to merge 99 commits into
base: master
Choose a base branch
from
Open

Conversation

esuwu
Copy link
Contributor

@esuwu esuwu commented Jun 14, 2024

No description provided.

@esuwu esuwu changed the title Initial draft Initial design draft Jun 14, 2024
@esuwu esuwu changed the title Initial design draft Blockchain updates for L2 extension Jul 3, 2024
@@ -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
Copy link
Collaborator

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

Copy link
Collaborator

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)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be fixed

Copy link
Collaborator

@nickeskov nickeskov Jan 17, 2025

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

@nickeskov nickeskov added wip This is a WIP, should not be merged right away do not merge The PR is not ready to be merged labels Aug 26, 2024
esuwu added 3 commits March 31, 2025 16:31
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge The PR is not ready to be merged wip This is a WIP, should not be merged right away
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants