Show / Hide Table of Contents

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 Source

ComplementAll

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

FungibleAssetStateCompleter

Holds a FungibleAssetStateCompleter<T>.

Declaration
public FungibleAssetStateCompleter<T> FungibleAssetStateCompleter { readonly get; set; }
Property Value
Type Description
FungibleAssetStateCompleter<T>
| Improve this Doc View Source

StateCompleter

Holds a StateCompleter<T>.

Declaration
public StateCompleter<T> StateCompleter { readonly get; set; }
Property Value
Type Description
StateCompleter<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium