Skip to content

Commit

Permalink
proctime do not contain ValidateState
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Jul 26, 2021
1 parent 8975587 commit c4ffd75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1904,14 +1904,14 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, er

blockExecutionTimer.Update(time.Since(substart))

proctime := time.Since(start)
// Validate the state using the default validator
substart = time.Now()
if err := bc.validator.ValidateState(block, statedb, receipts, usedGas); err != nil {
bc.reportBlock(block, receipts, err)
log.Error("validate state failed", "error", err)
return it.index, err
}
proctime := time.Since(start)

// Update the metrics touched during block validation
accountHashTimer.Update(statedb.AccountHashes) // Account hashes are complete, we can mark them
Expand Down

0 comments on commit c4ffd75

Please sign in to comment.