From 2cb139696947191e2f6c1ef979d838e4385f0d32 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Mon, 17 May 2021 21:33:32 +0300 Subject: [PATCH] Log the slashing DB pruning time --- beacon_chain/validators/slashing_protection.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beacon_chain/validators/slashing_protection.nim b/beacon_chain/validators/slashing_protection.nim index 71274fa21..24e6a8948 100644 --- a/beacon_chain/validators/slashing_protection.nim +++ b/beacon_chain/validators/slashing_protection.nim @@ -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