Skip to content

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

Merged
brilliant-lx merged 1 commit intobnb-chain:developfrom
buddh0:increase_snapshot_cache_size
Nov 28, 2023
Merged

consensus/parlia: increase size of snapshot cache in parlia#2007
brilliant-lx merged 1 commit intobnb-chain:developfrom
buddh0:increase_snapshot_cache_size

Conversation

@buddh0
Copy link
Copy Markdown
Contributor

@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
@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