-
Notifications
You must be signed in to change notification settings - Fork 149
chore(l1): fast validate #5713
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
chore(l1): fast validate #5713
Conversation
Lines of code reportTotal lines added: Detailed view |
Benchmark for 2c37b03Click to view benchmark
|
Benchmark for 398d407Click to view benchmark
|
Benchmark for e28a603Click to view benchmark
|
87ca44e to
e4f21e2
Compare
Benchmark for 60c8be6Click to view benchmark
|
Oppen
left a comment
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.
LGTM but see comment.
Benchmark for 8b9433aClick to view benchmark
|
| if expected_count != 0 { | ||
| return Err(TrieError::Verify(format!( | ||
| "Node count mismatch, expected {expected_count} more" | ||
| ))); |
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.
We lost context here, maybe for a follow-up but we might want better info for this error (like node/path) to understand where to look instead of just the difference? Not sure if right now that info is useful or not, i didn't debugged these cases before, if it is indeed useful we can create a small issue for later.
Motivation
We want to validate the tree quicker and consume less memory.
Description