Skip to content

Commit

Permalink
Increase size to 10 (prysmaticlabs#4818)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored and cryptomental committed Feb 24, 2020
1 parent 711e785 commit 4ff053e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion beacon-chain/cache/checkpoint_state.go
Expand Up @@ -19,7 +19,9 @@ var (
ErrNotCheckpointState = errors.New("object is not a state by check point struct")

// maxCheckpointStateSize defines the max number of entries check point to state cache can contain.
maxCheckpointStateSize = 4
// Choosing 10 to account for multiple forks, this allows 5 forks per epoch boundary with 2 epochs
// window to accept attestation based on latest spec.
maxCheckpointStateSize = 10

// Metrics.
checkpointStateMiss = promauto.NewCounter(prometheus.CounterOpts{
Expand Down

0 comments on commit 4ff053e

Please sign in to comment.