Skip to content

Commit

Permalink
Fixed benchmarks with a proper fix from #1860
Browse files Browse the repository at this point in the history
  • Loading branch information
xgreenx committed Apr 29, 2024
1 parent 2136866 commit 2bf802f
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion benches/benches/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ where
}

fn vm(c: &mut Criterion) {
blockchain::run(c);
alu::run(c);
crypto::run(c);
flow::run(c);
mem::run(c);
blockchain::run(c);
contract_root(c);
state_root(c);
vm_initialization(c);
Expand Down
Binary file not shown.
Binary file modified bin/fuel-core/chainspec/testnet/state_transition_bytecode.wasm
Binary file not shown.
8 changes: 0 additions & 8 deletions crates/fuel-core/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,6 @@ impl Modifiable for Database<OnChain> {
fn commit_changes(&mut self, changes: Changes) -> StorageResult<()> {
commit_changes_with_height_update(self, changes, |iter| {
iter.iter_all::<FuelBlocks>(Some(IterDirection::Reverse))
.filter_map(|result| {
if let Ok((height, _)) = &result {
if height == &0.into() {
return None;
}
}
Some(result)
})
.map(|result| result.map(|(height, _)| height))
.try_collect()
})
Expand Down

0 comments on commit 2bf802f

Please sign in to comment.