Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consensus/parlia: increase size of snapshot cache in parlia #2007

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

buddh0
Copy link
Collaborator

@buddh0 buddh0 commented Nov 28, 2023

Description

consensus/parlia: increase size of snapshot cache in parlia

Rationale

when distribute rewards for fast finality,
need to get snapshot for blocks in [currentNumber-200,currentNumber)

but the size of recentSnaps is only 128, so many snapshots need to be inferred in place,
to get better performance, double 128 to 256

Example

add an example CLI or API response...

Changes

Notable changes:

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

@brilliant-lx brilliant-lx merged commit 7894423 into bnb-chain:develop Nov 28, 2023
5 checks passed
@buddh0 buddh0 deleted the increase_snapshot_cache_size branch December 12, 2023 02:21
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