-
Notifications
You must be signed in to change notification settings - Fork 155
fix(l1): stop block building preemptively #4999
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
Changes from 2 commits
d94ca5c
8905d47
898efd7
e6b1550
f355e7f
ea6ceb2
4dada9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -361,7 +361,7 @@ impl Store { | |
| /// Applies account updates based on the block's latest storage state | ||
| /// and returns the new state root after the updates have been applied. | ||
| #[instrument(level = "trace", name = "Trie update", skip_all)] | ||
| pub async fn apply_account_updates_batch( | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Im quite confused about this change (probably due to lack of knowledge). Intuitively I would expect ALL store functions to be async. And also not have to put
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just for the record, I also think that I agree that a |
||
| pub fn apply_account_updates_batch( | ||
| &self, | ||
| block_hash: BlockHash, | ||
| account_updates: &[AccountUpdate], | ||
|
|
@@ -370,16 +370,16 @@ impl Store { | |
| return Ok(None); | ||
| }; | ||
|
|
||
| Ok(Some( | ||
| self.apply_account_updates_from_trie_batch(state_trie, account_updates) | ||
| .await?, | ||
| )) | ||
| Ok(Some(self.apply_account_updates_from_trie_batch( | ||
| state_trie, | ||
| account_updates, | ||
| )?)) | ||
| } | ||
|
|
||
| pub async fn apply_account_updates_from_trie_batch( | ||
| pub fn apply_account_updates_from_trie_batch<'a>( | ||
| &self, | ||
| mut state_trie: Trie, | ||
| account_updates: impl IntoIterator<Item = &AccountUpdate>, | ||
| account_updates: impl IntoIterator<Item = &'a AccountUpdate>, | ||
| ) -> Result<AccountUpdatesList, StoreError> { | ||
| let mut ret_storage_updates = Vec::new(); | ||
| let mut code_updates = Vec::new(); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.