Skip to content
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

Fix missing passing scheme when init genesis and avoid referencing same object when passing parents in cosortium v1 #608

Merged
merged 4 commits into from
Oct 25, 2024

Conversation

huyngopt1994
Copy link
Collaborator

@huyngopt1994 huyngopt1994 commented Oct 21, 2024

  • Fix missing passing scheme when init genesis
  • Avoid referencing same object when passing parents in cosortium v1

@Francesco4203 Francesco4203 force-pushed the all-fix-some-bugs-during-testing branch from 2e6654a to d7f7646 Compare October 23, 2024 10:14
huyngopt1994 and others added 2 commits October 24, 2024 17:52
In snapshot function, the list parents is popped out gradually for getting its contents, so when calling apply, the parents list is empty. Simply create a copy at the beginning to fix it.
This has been fixed in consortium v2. For a full sync scenario, however, the first blocks are still processed with consortium v1, which causes our node to panic.
@huyngopt1994 huyngopt1994 changed the title [WIP] All fix some bugs during testing Fix missing passing scheme when init genesis and avoid referencing same object when passing parents in cosortium v1 Oct 25, 2024
@huyngopt1994 huyngopt1994 merged commit 69b0c7f into path-base-implementing Oct 25, 2024
1 check passed
@huyngopt1994 huyngopt1994 deleted the all-fix-some-bugs-during-testing branch October 25, 2024 07:15
huyngopt1994 added a commit that referenced this pull request Oct 25, 2024
…me object when passing parents in cosortium v1 (#608)

* cmd,eth: fix wrong compare logic when data dir is empty and moving checking error correctly

* docker: passing state.scheme when initing the genesis data

* rawdb: add missing freezer in collections

* v1/consortium:  create a copy to keep parents content

In snapshot function, the list parents is popped out gradually for getting its contents, so when calling apply, the parents list is empty. Simply create a copy at the beginning to fix it.
This has been fixed in consortium v2. For a full sync scenario, however, the first blocks are still processed with consortium v1, which causes our node to panic.

---------

Co-authored-by: Francesco4203 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants