Skip to content

Commit

Permalink
chore: fix memory usage (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
renancloudwalk authored Mar 19, 2024
1 parent 7634f9a commit 0c8f18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eth/storage/hybrid/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ impl PermanentStorage for HybridPermanentStorage {
// save block
let block = Arc::new(block);
let number = block.number();
state.blocks_by_hash.truncate(600);
state.blocks_by_number.truncate(600);
state.blocks_by_number.insert(*number, Arc::clone(&block));

//XXX deal with errors later
Expand Down

0 comments on commit 0c8f18c

Please sign in to comment.