More sparse state snapshots in the Gnosis network

This commit is contained in:
Zahary Karadjov 2022-04-09 18:07:36 +03:00
parent 3796810bcd
commit 557717b517
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
2 changed files with 2 additions and 1 deletions

View File

@ -421,6 +421,7 @@ gnosis-build gnosis-chain-build: | build deps
-d:SECONDS_PER_SLOT=5 \
-d:BASE_REWARD_FACTOR=25 \
-d:EPOCHS_PER_SYNC_COMMITTEE_PERIOD=512 \
-d:EPOCHS_PER_STATE_SNAPSHOT=128 \
&& \
echo -e $(BUILD_END_MSG) "build/nimbus_beacon_node_gnosis"

View File

@ -50,7 +50,7 @@ const
# When finality happens, we prune historical states from the database except
# for a snapshort every 32 epochs from which replays can happen - there's a
# balance here between making long replays and saving on disk space
EPOCHS_PER_STATE_SNAPSHOT = 32
EPOCHS_PER_STATE_SNAPSHOT {.intdefine.} = 32
proc putBlock*(
dag: ChainDAGRef, signedBlock: ForkyTrustedSignedBeaconBlock) =