Skip to content

Commit 2cb1396

Browse files
committed
Log the slashing DB pruning time
1 parent 1f1367d commit 2cb1396

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

beacon_chain/validators/slashing_protection.nim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import
1313
# Status
1414
eth/db/[kvstore, kvstore_sqlite3],
1515
stew/[results, byteutils],
16-
chronicles,
16+
chronicles, chronicles/timings,
1717
# Internal
1818
../spec/[datatypes, digest, crypto],
1919
./slashing_protection_common,
@@ -273,7 +273,8 @@ proc pruneAfterFinalization*(
273273
## Pruning is only triggered on v2 database.
274274

275275
if kLowWatermark in db.modes:
276-
db.db_v2.pruneAfterFinalization(finalizedEpoch)
276+
debug.logTime "Pruning slashing DB":
277+
db.db_v2.pruneAfterFinalization(finalizedEpoch)
277278

278279
# The high-level import/export functions are
279280
# - importSlashingInterchange

0 commit comments

Comments
 (0)