Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr_perf_blocks_exec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Install Hyperfine
uses: taiki-e/install-action@v2
with:
tool: hyperfine@1.16
tool: hyperfine@1.20

- name: Fetch base binary
uses: actions/cache/restore@v3
Expand Down
9 changes: 9 additions & 0 deletions crates/storage/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2382,6 +2382,15 @@ fn apply_trie_updates(
storage_updates,
} = trie_update;

if parent_state_root == child_state_root {
// if roots match it means the block doesn't change the state, thus we
// avoid emitting a diff layer
result_sender
.send(Ok(()))
.map_err(|_| StoreError::LockError)?;
return Ok(());
}

// Phase 1: update the in-memory diff-layers only, then notify block production.
let new_layer = storage_updates
.into_iter()
Expand Down
Loading