mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
fix disklayer.go
This commit is contained in:
parent
4cda8f06ea
commit
f915d97084
1 changed files with 2 additions and 2 deletions
|
|
@ -163,7 +163,7 @@ func (dl *diskLayer) account(hash common.Hash, depth int) ([]byte, error) {
|
||||||
dirtyStateHitDepthHist.Update(int64(depth))
|
dirtyStateHitDepthHist.Update(int64(depth))
|
||||||
|
|
||||||
if len(blob) == 0 {
|
if len(blob) == 0 {
|
||||||
stateAccountInexMeter.Mark(1)
|
stateAccountIndexMeter.Mark(1)
|
||||||
} else {
|
} else {
|
||||||
stateAccountExistMeter.Mark(1)
|
stateAccountExistMeter.Mark(1)
|
||||||
}
|
}
|
||||||
|
|
@ -198,7 +198,7 @@ func (dl *diskLayer) storage(accountHash, storageHash common.Hash, depth int) ([
|
||||||
dirtyStateHitDepthHist.Update(int64(depth))
|
dirtyStateHitDepthHist.Update(int64(depth))
|
||||||
|
|
||||||
if len(blob) == 0 {
|
if len(blob) == 0 {
|
||||||
stateStorageInexMeter.Mark(1)
|
stateStorageIndexMeter.Mark(1)
|
||||||
} else {
|
} else {
|
||||||
stateStorageExistMeter.Mark(1)
|
stateStorageExistMeter.Mark(1)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue