Skip to content

core/state: implement fast storage deletion (#27955)#1909

Closed
NathanBSC wants to merge 1 commit intobnb-chain:developfrom
node-real:pick_fast_storage_deletion
Closed

core/state: implement fast storage deletion (#27955)#1909
NathanBSC wants to merge 1 commit intobnb-chain:developfrom
node-real:pick_fast_storage_deletion

Conversation

@NathanBSC
Copy link
Copy Markdown
Contributor

This changes implements faster post-selfdestruct iteration of storage slots for deletion, by using snapshot-storage+stacktrie to recover the trienodes to be deleted. This mechanism is only implemented for path-based schema.

For hash-based schema, the entire post-selfdestruct storage iteration is skipped, with this change, since hash-based does not actually perform deletion anyway.


Description

add a description of your changes here...

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

This changes implements faster post-selfdestruct iteration of storage slots for deletion, by using snapshot-storage+stacktrie to recover the trienodes to be deleted. This mechanism is only implemented for path-based schema.

For hash-based schema, the entire post-selfdestruct storage iteration is skipped, with this change, since hash-based does not actually perform deletion anyway.

---------

Co-authored-by: Martin Holst Swende <martin@swende.se>
Copy link
Copy Markdown
Contributor

@brilliant-lx brilliant-lx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls hold this PR, until v1.3.0 release

@joey0612
Copy link
Copy Markdown
Contributor

joey0612 commented Oct 8, 2023

I think we should follow the PR template spec to organize PR descriptions.
BTW, lint commur reports errors.

@buddh0
Copy link
Copy Markdown
Contributor

buddh0 commented Oct 13, 2023

I will close this PR, #1916 is preferred

@buddh0 buddh0 closed this Oct 13, 2023
@NathanBSC NathanBSC deleted the pick_fast_storage_deletion branch August 2, 2024 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants