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

This reverts commit 7da16f4908.
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
1 changed files with 1 additions and 2 deletions

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
# the database are synced with the filesystem.
if slot mod 4 == 0:
node.db.checkpoint()
node.db.checkpoint()
info "Slot end",
slot = shortLog(slot),