Skip to content

fix(anvil): clean up InMemoryBlockStates on rollback#13978

Open
FredPhilipy wants to merge 1 commit intofoundry-rs:masterfrom
FredPhilipy:fixStates
Open

fix(anvil): clean up InMemoryBlockStates on rollback#13978
FredPhilipy wants to merge 1 commit intofoundry-rs:masterfrom
FredPhilipy:fixStates

Conversation

@FredPhilipy
Copy link
Copy Markdown
Contributor

Added remove_block_states method to InMemoryBlockStates and call it in rollback() after unwind_to(). This prevents leaked block states in memory, on-disk tracking, and disk cache files when blocks are rolled back during chain reorganization.

Added `remove_block_states` method to `InMemoryBlockStates` and call it in `rollback()` after `unwind_to()`. This prevents leaked block states in memory, on-disk tracking, and disk cache files when blocks are rolled back during chain reorganization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant