Skip to content

Commit

Permalink
add logs for retry
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Aug 20, 2024
1 parent 4d8162c commit 141ef5d
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,31 @@ class AsyncCachingV2(
if (blockRes == null) return null
logger.info("saving block ${blockRes.block.height()}")
val blockTimestamp = blockRes.block.header.time.toDateTime()
if (rerunTxs.second) {
logger.info("attempting to build insert for block cache for block ${blockRes.block.height()}")
}
val block =
BlockCacheRecord.buildInsert(
blockRes.block.height(),
blockRes.block.data.txsCount,
blockTimestamp,
blockRes
)
if (rerunTxs.second) {
logger.info("attempting to build proposer insert for block ${blockRes.block.height()}")
}
val proposerRec = validatorService.buildProposerInsert(blockRes, blockTimestamp, blockRes.block.height())
if (rerunTxs.second) {
logger.info("attempting to query validator at height for block ${blockRes.block.height()}")
}
val valsAtHeight = validatorService.buildValidatorsAtHeight(blockRes.block.height())
if (rerunTxs.second) {
logger.info("attempting to calculate missing blocks for block ${blockRes.block.height()}")
}
validatorService.saveMissedBlocks(blockRes)
logger.info("attempting to save txs ${blockRes.block.data.txsCount} for block ${blockRes.block.height()}")
if (rerunTxs.second) {
logger.info("attempting to save txs ${blockRes.block.data.txsCount} for block ${blockRes.block.height()}")
}
val txs =
if (blockRes.block.data.txsCount > 0) {
saveTxs(
Expand Down

0 comments on commit 141ef5d

Please sign in to comment.