Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Aug 20, 2024
1 parent 141ef5d commit 7e3e3ee
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class AsyncCachingV2(
if (blockRes == null) return null
logger.info("saving block ${blockRes.block.height()}")
val blockTimestamp = blockRes.block.header.time.toDateTime()
if (rerunTxs.second) {
if (rerunTxs.first) {
logger.info("attempting to build insert for block cache for block ${blockRes.block.height()}")
}
val block =
Expand All @@ -171,19 +171,19 @@ class AsyncCachingV2(
blockTimestamp,
blockRes
)
if (rerunTxs.second) {
if (rerunTxs.first) {
logger.info("attempting to build proposer insert for block ${blockRes.block.height()}")
}
val proposerRec = validatorService.buildProposerInsert(blockRes, blockTimestamp, blockRes.block.height())
if (rerunTxs.second) {
if (rerunTxs.first) {
logger.info("attempting to query validator at height for block ${blockRes.block.height()}")
}
val valsAtHeight = validatorService.buildValidatorsAtHeight(blockRes.block.height())
if (rerunTxs.second) {
if (rerunTxs.first) {
logger.info("attempting to calculate missing blocks for block ${blockRes.block.height()}")
}
validatorService.saveMissedBlocks(blockRes)
if (rerunTxs.second) {
if (rerunTxs.first) {
logger.info("attempting to save txs ${blockRes.block.data.txsCount} for block ${blockRes.block.height()}")
}
val txs =
Expand Down

0 comments on commit 7e3e3ee

Please sign in to comment.