Interface IStateStore
An interface to store states.
Namespace: Libplanet.Store
Assembly: Libplanet.dll
Syntax
public interface IStateStore : IDisposable
Methods
| Improve this Doc View SourceGetStateRoot(Nullable<HashDigest<SHA256>>)
Gets the state root trie of the stateRootHash
from the state store.
Declaration
ITrie GetStateRoot(HashDigest<SHA256>? stateRootHash)
Parameters
Type | Name | Description |
---|---|---|
Nullable<HashDigest<SHA256>> | stateRootHash | The state root hash of the state root trie to get.
If |
Returns
Type | Description |
---|---|
ITrie | The state root trie of the |
PruneStates(IImmutableSet<HashDigest<SHA256>>)
Prunes the states no more used from the state store.
Declaration
void PruneStates(IImmutableSet<HashDigest<SHA256>> survivingStateRootHashes)
Parameters
Type | Name | Description |
---|---|---|
IImmutableSet<HashDigest<SHA256>> | survivingStateRootHashes | The state root hashes not to prune. These state root hashes are guaranteed to survive after pruning. |