|
|
|
@ -73,23 +73,11 @@ var ( |
|
|
|
|
storageUpdateTimer = metrics.NewRegisteredTimer("chain/storage/updates", nil) |
|
|
|
|
storageCommitTimer = metrics.NewRegisteredTimer("chain/storage/commits", nil) |
|
|
|
|
|
|
|
|
|
snapshotAccountReadTimer = metrics.NewRegisteredTimer("chain/snapshot/account/reads", nil) |
|
|
|
|
snapshotStorageReadTimer = metrics.NewRegisteredTimer("chain/snapshot/storage/reads", nil) |
|
|
|
|
snapshotCommitTimer = metrics.NewRegisteredTimer("chain/snapshot/commits", nil) |
|
|
|
|
|
|
|
|
|
blockInsertTimer = metrics.NewRegisteredTimer("chain/inserts", nil) |
|
|
|
|
blockValidationTimer = metrics.NewRegisteredTimer("chain/validation", nil) |
|
|
|
|
blockExecutionTimer = metrics.NewRegisteredTimer("chain/execution", nil) |
|
|
|
|
blockWriteTimer = metrics.NewRegisteredTimer("chain/write", nil) |
|
|
|
|
|
|
|
|
|
blockReorgMeter = metrics.NewRegisteredMeter("chain/reorg/executes", nil) |
|
|
|
|
blockReorgAddMeter = metrics.NewRegisteredMeter("chain/reorg/add", nil) |
|
|
|
|
blockReorgDropMeter = metrics.NewRegisteredMeter("chain/reorg/drop", nil) |
|
|
|
|
blockReorgInvalidatedTx = metrics.NewRegisteredMeter("chain/reorg/invalidTx", nil) |
|
|
|
|
|
|
|
|
|
blockPrefetchExecuteTimer = metrics.NewRegisteredTimer("chain/prefetch/executes", nil) |
|
|
|
|
blockPrefetchInterruptMeter = metrics.NewRegisteredMeter("chain/prefetch/interrupts", nil) |
|
|
|
|
|
|
|
|
|
// ErrNoGenesis is the error when there is no genesis.
|
|
|
|
|
ErrNoGenesis = errors.New("Genesis not found in chain") |
|
|
|
|
// errExceedMaxPendingSlashes ..
|
|
|
|
|