-
Notifications
You must be signed in to change notification settings - Fork 64
feat(l1, l2): storage commit change #3043
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: main
Are you sure you want to change the base?
Conversation
Co-authored-by: Juan Bono <juanbono94@gmail.com>
Lines of code reportTotal lines added: Detailed view
|
Benchmark for 9f8b7aeClick to view benchmark
|
Benchmark for 32ea549Click to view benchmark
|
Benchmark for 5ff126bClick to view benchmark
|
Benchmark for 8eb61a4Click to view benchmark
|
.storage | ||
.apply_account_updates_batch(block.header.parent_hash, account_updates) | ||
.await? | ||
.ok_or(ChainError::ParentStateNotFound)?; |
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.
is this the only error possible? I think this might be misleading
Benchmark for c738ad6Click to view benchmark
|
Benchmark for 3b8d26fClick to view benchmark
|
…ases (#3072) **Motivation** Original PR was missing ReDB and InMemory implementations. **Description** Merges the single-update method as a special case of the batch one. Part of #3043 --------- Co-authored-by: Juan Bono <juanbono94@gmail.com> Co-authored-by: Ivan Litteri <67517699+ilitteri@users.noreply.github.com>
( | ||
H256, | ||
Vec<(NodeHash, Vec<u8>)>, | ||
Vec<(H256, Vec<(NodeHash, Vec<u8>)>)>, | ||
), |
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.
This return type requires documentation, and I suggest declaring it outside the function, possibly as a struct.
Benchmark for f8d90b4Click to view benchmark
|
Benchmark for 57197dfClick to view benchmark
|
Benchmark for e2c8607Click to view benchmark
|
Motivation
This PR modifies the insert strategy to make the commits at the end of the block instead of doing them on every transaction.
Description
Closes #issue_number