store full state 4x less often (#2542)

This commit is contained in:
tersec 2021-05-06 05:36:18 +00:00 committed by GitHub
parent dd43a2c3b0
commit 1d6c8ee9ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -588,7 +588,7 @@ proc putState*(dag: ChainDAGRef, state: var StateData) =
dag.db.putState(state.data.root, state.data.data)
# Allow backwards-compatible version rollback with bounded recovery cost
if getStateField(state, slot).epoch mod 64 == 0:
if getStateField(state, slot).epoch mod 256 == 0:
dag.db.putStateFull(state.data.root, state.data.data)
dag.db.putStateRoot(