only checkpoint every four slots (#2236)
* only checkpoint every four slots * only checkpoint every 16 slots * every 8 slots * every 4 slots; 8 seems probably okay, but be a bit conservative
This commit is contained in:
parent
295e3c9c73
commit
7da16f4908
|
@ -626,7 +626,8 @@ 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.
|
||||
node.db.checkpoint()
|
||||
if slot mod 4 == 0:
|
||||
node.db.checkpoint()
|
||||
|
||||
info "Slot end",
|
||||
slot = shortLog(slot),
|
||||
|
|
Loading…
Reference in New Issue