Log the slashing DB pruning time
This commit is contained in:
parent
1f1367d09a
commit
2cb1396969
|
@ -13,7 +13,7 @@ import
|
|||
# Status
|
||||
eth/db/[kvstore, kvstore_sqlite3],
|
||||
stew/[results, byteutils],
|
||||
chronicles,
|
||||
chronicles, chronicles/timings,
|
||||
# Internal
|
||||
../spec/[datatypes, digest, crypto],
|
||||
./slashing_protection_common,
|
||||
|
@ -273,6 +273,7 @@ proc pruneAfterFinalization*(
|
|||
## Pruning is only triggered on v2 database.
|
||||
|
||||
if kLowWatermark in db.modes:
|
||||
debug.logTime "Pruning slashing DB":
|
||||
db.db_v2.pruneAfterFinalization(finalizedEpoch)
|
||||
|
||||
# The high-level import/export functions are
|
||||
|
|
Loading…
Reference in New Issue