mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
fix difflayer.go
This commit is contained in:
parent
f915d97084
commit
8e9c3a63c3
1 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ func (dl *diffLayer) account(hash common.Hash, depth int) ([]byte, error) {
|
||||||
dirtyStateReadMeter.Mark(int64(len(blob)))
|
dirtyStateReadMeter.Mark(int64(len(blob)))
|
||||||
|
|
||||||
if len(blob) == 0 {
|
if len(blob) == 0 {
|
||||||
stateAccountInexMeter.Mark(1)
|
stateAccountIndexMeter.Mark(1)
|
||||||
} else {
|
} else {
|
||||||
stateAccountExistMeter.Mark(1)
|
stateAccountExistMeter.Mark(1)
|
||||||
}
|
}
|
||||||
|
|
@ -139,7 +139,7 @@ func (dl *diffLayer) storage(accountHash, storageHash common.Hash, depth int) ([
|
||||||
dirtyStateReadMeter.Mark(int64(len(blob)))
|
dirtyStateReadMeter.Mark(int64(len(blob)))
|
||||||
|
|
||||||
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