mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix(pruning): dont check pruning on every storage change for the same block (#4402)
This commit is contained in:
@ -529,11 +529,11 @@ impl PostState {
|
|||||||
for (block_number, storage_changes) in
|
for (block_number, storage_changes) in
|
||||||
std::mem::take(&mut self.storage_changes).inner.into_iter()
|
std::mem::take(&mut self.storage_changes).inner.into_iter()
|
||||||
{
|
{
|
||||||
for (address, mut storage) in storage_changes.into_iter() {
|
if self.prune_modes.should_prune_storage_history(block_number, tip) {
|
||||||
if self.prune_modes.should_prune_storage_history(block_number, tip) {
|
continue
|
||||||
continue
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
for (address, mut storage) in storage_changes.into_iter() {
|
||||||
let storage_id = BlockNumberAddress((block_number, address));
|
let storage_id = BlockNumberAddress((block_number, address));
|
||||||
|
|
||||||
// If the account was created and wiped at the same block, skip all storage changes
|
// If the account was created and wiped at the same block, skip all storage changes
|
||||||
|
|||||||
Reference in New Issue
Block a user