Revert "only checkpoint every four slots (#2236)" (#2242)

This reverts commit 7da16f49086fc21ce10766eb0cc00decc9d0fd81.
This commit is contained in:
tersec 2021-01-18 11:02:56 +01:00 committed by GitHub
parent c8c819359c
commit 0fce8ad0d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -626,8 +626,7 @@ proc onSlotEnd(node: BeaconNode, slot, nextSlot: Slot) =
# Checkpoint the database to clear the WAL file and make sure changes in # Checkpoint the database to clear the WAL file and make sure changes in
# the database are synced with the filesystem. # the database are synced with the filesystem.
if slot mod 4 == 0: node.db.checkpoint()
node.db.checkpoint()
info "Slot end", info "Slot end",
slot = shortLog(slot), slot = shortLog(slot),