celo-blockchain icon indicating copy to clipboard operation
celo-blockchain copied to clipboard

Specify `chain/inserts`

Open trianglesphere opened this issue 3 years ago • 0 comments
trafficstars

Description

chain_inserts_count now is only called when inserting chain segments while syncing.

The new code path for inserting blocks from the consensus engine is as follows

  • core.Commit
  • backend.Commit
  • go sb.onNewConsensusBlock
  • anonymous function defined at miner/worker.go:196
  • chain.InsertPreprocessedBlock
  • chain.insertPreprocessedBlock

The new code path does not have the same metrics.

trianglesphere avatar Dec 14 '21 00:12 trianglesphere