-
Notifications
You must be signed in to change notification settings - Fork 111
feat(ethexe): Implement database visitor & verifier #4787
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
…ifier # Conflicts: # ethexe/service/src/fast_sync.rs
…nd `walk_scheduled_task` logic.
… implementations and update related tests.
…der in `verifier` module
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.
Cannot agree with this implementation. I think it must be done much more simplier.
Virifier - is something that implements verification logic only without walking
ethexe/db/src/verifier.rs
Outdated
} | ||
|
||
fn visit_code_valid(&mut self, _code_id: CodeId, code_valid: bool) { | ||
if !code_valid { |
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.
Why code status can not be invalid? In tests we do not check this case but this does not mean that it's impossible
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.
Traversal starts with chain so it should be visited only for correct codes
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.
see #4793
there we do not have recursion like
walk -> visit -> walk -> visit -> walk
just
walk -> walk -> walk -> walk
…ifier # Conflicts: # ethexe/common/Cargo.toml # ethexe/common/src/db.rs # ethexe/db/Cargo.toml # ethexe/observer/src/lib.rs
…ifier # Conflicts: # ethexe/common/src/db.rs # ethexe/common/src/gear.rs # ethexe/compute/Cargo.toml # ethexe/compute/src/compute.rs # ethexe/consensus/src/mock.rs # ethexe/consensus/src/utils.rs # ethexe/db/src/database.rs # ethexe/service/Cargo.toml # ethexe/service/src/tests/mod.rs
02562e4
to
971713a
Compare
u can link issue #4624 |
Closes #4624