Close the database and free resources.
OptionaldiskApparent on-disk size of the database in bytes, used for monitoring.
Returns null when the size is unknown. Backends that are not persisted
(e.g. in-memory) may omit the method entirely.
Retrieve posterior state of given header.
Compute a state root for given state.
Mark state as no longer needed. Backend may remove it asynchronously.
Apply & commit a state update.
NOTE: for efficiency, the implementation MAY alter given state object.
Interface for accessing states stored in the database.
NOTE that the design of this interface is heavily influenced by the LMDB implementation, so that we can implement it efficiently.
See the documentation there for more detailed reasoning.