@@ -37,15 +37,15 @@ import (
37
37
// base layer statedb can be passed then it's regarded as the statedb of the
38
38
// parent block.
39
39
// Parameters:
40
- // - block: The block for which we want the state (== state at the stateRoot of the parent)
41
- // - reexec: The maximum number of blocks to reprocess trying to obtain the desired state
42
- // - base: If the caller is tracing multiple blocks, the caller can provide the parent state
43
- // continuously from the callsite.
44
- // - checklive: if true, then the live 'blockchain' state database is used. If the caller want to
45
- // perform Commit or other 'save-to-disk' changes, this should be set to false to avoid
46
- // storing trash persistently
47
- // - preferDisk: this arg can be used by the caller to signal that even though the 'base' is provided,
48
- // it would be preferrable to start from a fresh state, if we have it on disk.
40
+ // - block: The block for which we want the state (== state at the stateRoot of the parent)
41
+ // - reexec: The maximum number of blocks to reprocess trying to obtain the desired state
42
+ // - base: If the caller is tracing multiple blocks, the caller can provide the parent state
43
+ // continuously from the callsite.
44
+ // - checklive: if true, then the live 'blockchain' state database is used. If the caller want to
45
+ // perform Commit or other 'save-to-disk' changes, this should be set to false to avoid
46
+ // storing trash persistently
47
+ // - preferDisk: this arg can be used by the caller to signal that even though the 'base' is provided,
48
+ // it would be preferrable to start from a fresh state, if we have it on disk.
49
49
func (eth * Ethereum ) stateAtBlock (block * types.Block , reexec uint64 , base * state.StateDB , checkLive bool , preferDisk bool ) (statedb * state.StateDB , err error ) {
50
50
var (
51
51
current * types.Block
0 commit comments