Struct StateCompleterSet<T>
Groups two kinds of state completers, StateCompleters<T> and FungibleAssetStateCompleters<T>.
Namespace: Libplanet.Blockchain
Assembly: Libplanet.dll
Syntax
public struct StateCompleterSet<T>
where T : IAction, new()
Type Parameters
Name | Description |
---|---|
T | An IAction type. It should match to BlockChain<T>'s type parameter. |
Fields
| Improve this Doc View SourceComplementAll
Recalculates and complements all missing block states including and upto a given hash starting from the genesis block.
Declaration
public static readonly StateCompleterSet<T> ComplementAll
Field Value
Type | Description |
---|---|
StateCompleterSet<T> |
Remarks
Complemented states are permanently stored.
ComplementLatest
Recalculates and complements all missing block states including and upto a given hash starting from the last known states in state storage before the given hash if the states are missing for the given hash.
Declaration
public static readonly StateCompleterSet<T> ComplementLatest
Field Value
Type | Description |
---|---|
StateCompleterSet<T> |
Remarks
Complemented states are permanently stored.
Recalculate
Recalculates all block states and complements missing states including and upto a given hash starting from the genesis block.
Declaration
public static readonly StateCompleterSet<T> Recalculate
Field Value
Type | Description |
---|---|
StateCompleterSet<T> |
Remarks
Complemented states are permanently stored.
Reject
Rejects to complement incomplete state and throws an IncompleteBlockStatesException.
Declaration
public static readonly StateCompleterSet<T> Reject
Field Value
Type | Description |
---|---|
StateCompleterSet<T> |
Properties
| Improve this Doc View SourceFungibleAssetStateCompleter
Holds a FungibleAssetStateCompleter<T>.
Declaration
public FungibleAssetStateCompleter<T> FungibleAssetStateCompleter { readonly get; set; }
Property Value
Type | Description |
---|---|
FungibleAssetStateCompleter<T> |
StateCompleter
Holds a StateCompleter<T>.
Declaration
public StateCompleter<T> StateCompleter { readonly get; set; }
Property Value
Type | Description |
---|---|
StateCompleter<T> |