Skip to content

Commit

Permalink
only log tx processing if happens
Browse files Browse the repository at this point in the history
  • Loading branch information
nullpointer0x00 committed Sep 6, 2024
1 parent 57ad2c9 commit 0802ff7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,13 @@ class BlockAndTxProcessor(
stepTime = System.currentTimeMillis()

val txs = if (blockRes.block.data.txsCount > 0) {
saveTxs(blockRes, proposerRec, rerunTxs).map { it.toProcedureObject() }
val savedTxs = saveTxs(blockRes, proposerRec, rerunTxs).map { it.toProcedureObject() }
logTimeElapsed("saveTxs", stepTime, blockHeight)
stepTime = System.currentTimeMillis()
savedTxs
} else {
listOf()
}
logTimeElapsed("saveTxs", stepTime, blockHeight)
stepTime = System.currentTimeMillis()

val blockUpdate = BlockUpdate(block, proposerRec.buildInsert(), valsAtHeight, txs)

Expand Down

0 comments on commit 0802ff7

Please sign in to comment.