Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCacheMiss = errors.New("not found in cache")
Functions ¶
This section is empty.
Types ¶
type StateCache ¶
type StateCache interface { GetStateObject(addr common.Address) (*StateObject, error) WriteStateObject(addr common.Address, data StateObject) error GetSlotData(addr common.Address, slot common.Hash) (common.Hash, error) WriteSlotData(addr common.Address, slot common.Hash, data common.Hash) error }
func NewNonPersistentCache ¶
func NewNonPersistentCache() (StateCache, error)
func NewPersistentCache ¶
NewPersistentCache creates a new set of persistent caches that will persist cache content to disk. Each cache is indexed by the RPC address (to separate network caches) and blockNum
Click to show internal directories.
Click to hide internal directories.