Skip to content

Commit

Permalink
Add log
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed Mar 29, 2024
1 parent a17df43 commit b860537
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/state/execution.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ func (blockExec *BlockExecutor) ApplyBlock(
"block_app_hash", fmt.Sprintf("%X", fBlockRes.AppHash),
)

saveStartTime := time.Now()
// Save the results before we commit.
err = blockExec.store.SaveFinalizeBlockResponses(block.Height, fBlockRes)
if err != nil && !errors.Is(err, ErrNoFinalizeBlockResponsesForHeight{block.Height}) {
Expand Down Expand Up @@ -349,6 +350,7 @@ func (blockExec *BlockExecutor) ApplyBlock(
if err := blockExec.store.Save(state); err != nil {
return state, err
}
fmt.Printf("[Debug] Save block took %s\n", time.Since(saveStartTime))

pruneStartTime := time.Now()
// Prune old heights, if requested by ABCI app.
Expand Down

0 comments on commit b860537

Please sign in to comment.