Log the slashing DB pruning time

This commit is contained in:
Zahary Karadjov 2021-05-17 21:33:32 +03:00
parent 1f1367d09a
commit 2cb1396969
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 3 additions and 2 deletions

View File

@ -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,7 +273,8 @@ proc pruneAfterFinalization*(
## Pruning is only triggered on v2 database.
if kLowWatermark in db.modes:
db.db_v2.pruneAfterFinalization(finalizedEpoch)
debug.logTime "Pruning slashing DB":
db.db_v2.pruneAfterFinalization(finalizedEpoch)
# The high-level import/export functions are
# - importSlashingInterchange