Skip to content

fix: prune-state when specify --triesInMemory 32#2602

Merged
zzzckck merged 2 commits intobnb-chain:developfrom
jingjunLi:fix-prune-state-triesInMemory-32
Jul 23, 2024
Merged

fix: prune-state when specify --triesInMemory 32#2602
zzzckck merged 2 commits intobnb-chain:developfrom
jingjunLi:fix-prune-state-triesInMemory-32

Conversation

@jingjunLi
Copy link
Copy Markdown
Contributor

@jingjunLi jingjunLi commented Jul 22, 2024

Description

To address and fix the issue described in hash schema: prune state failed #2588

Rationale

The prune-state command, when specifying --triesInMemory 32, results in a "no snapshot paired state" error, while the command runs successfully with the default value.
Previously, the fixed value of TriesInMemory was set to 128 and then changed to a configurable value. However, there are still some references in the code that have not been updated. For example, during persistence in (bc *BlockChain) Stop(), the constant value 128 is still being used instead of the configurable bc.TriesInMemory().

Example

add an example CLI or API response...

Changes

Notable changes:

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

Copy link
Copy Markdown

@RenRick RenRick left a comment

Choose a reason for hiding this comment

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

LGTM

@zzzckck zzzckck merged commit 6260a26 into bnb-chain:develop Jul 23, 2024
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.

4 participants