Module casper_execution_engine::core::tracking_copy
source · Expand description
This module defines the TrackingCopy
- a utility that caches operations on the state, so that
the underlying state remains unmodified, but it can be interacted with as if the modifications
were applied on it.
Structs
- An interface for the global state that caches all operations (reads and writes) instead of applying them directly to the state. This way the state remains unmodified, while the user can interact with it as if it was being modified in real time.
- Keeps track of already accessed keys. We deliberately separate cached Reads from cached mutations because we want to invalidate Reads’ cache so it doesn’t grow too fast.
Enums
- Result of executing an “add” operation on a value in the state.
- Result of a query on a
TrackingCopy
. - Error conditions of a proof validation.
Traits
- Higher-level operations on the state via a
TrackingCopy
.
Functions
- Validates a proof of a balance request.
- Validates proof of the query.