forked from bnb-chain/bsc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
triedb/pathdb: enlarge maxDiffLayers to 28800
* triedb/pathdb/database.go * Export maxDiffLayersto make this setting available for use in other packages * triedb/pathdb/database_test.go * Adjust test cases to reflect the increased `maxDiffLayers` value * Update test logic to simulate and verify behavior with the increased `MaxDiffLayers` value. * core/blockchain_test.go * Introduce `TestMaxDiffLayers` and `TestAdditionalLayers` constants to align with the updated `MaxDiffLayers`. * Adjust chain generation and pruning logic to reflect the enlarged `MaxDiffLayers`.
- Loading branch information
1 parent
ea7ce54
commit d4b561f
Showing
3 changed files
with
40 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters