Skip to content

Commit

Permalink
Rename local var validationTrieProcTime (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbuchwald authored Apr 4, 2023
1 parent 0722f97 commit 241ddae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1356,9 +1356,9 @@ func (bc *BlockChain) insertBlock(block *types.Block, writes bool) error {
storageUpdateTimer.Inc(statedb.StorageUpdates.Milliseconds()) // Storage updates are complete, we can mark them
accountHashTimer.Inc(statedb.AccountHashes.Milliseconds()) // Account hashes are complete, we can mark them
storageHashTimer.Inc(statedb.StorageHashes.Milliseconds()) // Storage hashes are complete, we can mark them
additionalTrieProc := statedb.AccountHashes + statedb.StorageHashes + statedb.AccountUpdates + statedb.StorageUpdates - trieproc
blockStateValidationTimer.Inc((time.Since(substart) - additionalTrieProc).Milliseconds())
blockTrieOpsTimer.Inc((trieproc + additionalTrieProc).Milliseconds())
validationTrieProcTime := statedb.AccountHashes + statedb.StorageHashes + statedb.AccountUpdates + statedb.StorageUpdates - trieproc
blockStateValidationTimer.Inc((time.Since(substart) - validationTrieProcTime).Milliseconds())
blockTrieOpsTimer.Inc((trieproc + validationTrieProcTime).Milliseconds())

// If [writes] are disabled, skip [writeBlockWithState] so that we do not write the block
// or the state trie to disk.
Expand Down

0 comments on commit 241ddae

Please sign in to comment.