@@ -76,8 +76,8 @@ func (dl *diskLayer) Stale() bool {
76
76
77
77
// Account directly retrieves the account associated with a particular hash in
78
78
// the snapshot slim data format.
79
- func (dl * diskLayer ) account (hash common.Hash , ignoreStale bool ) (* types.SlimAccount , error ) {
80
- data , err := dl .accountRLP (hash , ignoreStale )
79
+ func (dl * diskLayer ) account (hash common.Hash , evenIfStale bool ) (* types.SlimAccount , error ) {
80
+ data , err := dl .accountRLP (hash , evenIfStale )
81
81
if err != nil {
82
82
return nil , err
83
83
}
@@ -91,13 +91,13 @@ func (dl *diskLayer) account(hash common.Hash, ignoreStale bool) (*types.SlimAcc
91
91
92
92
// AccountRLP directly retrieves the account RLP associated with a particular
93
93
// hash in the snapshot slim data format.
94
- func (dl * diskLayer ) accountRLP (hash common.Hash , ignoreStale bool ) ([]byte , error ) {
94
+ func (dl * diskLayer ) accountRLP (hash common.Hash , evenIfStale bool ) ([]byte , error ) {
95
95
dl .lock .RLock ()
96
96
defer dl .lock .RUnlock ()
97
97
98
98
// If the layer was flattened into, consider it invalid (any live reference to
99
99
// the original should be marked as unusable).
100
- if dl .stale && ! ignoreStale {
100
+ if dl .stale && ! evenIfStale {
101
101
return nil , ErrSnapshotStale
102
102
}
103
103
// If the layer is being generated, ensure the requested hash has already been
0 commit comments