Show / Hide Table of Contents

Namespace Libplanet.Blockchain

Classes

BlockChain<T>

A class have Block<T>s, Transaction<T>s, and the chain information.

In order to watch its state changes, implement IRenderer<T> interface and pass it to the BlockChain(IBlockPolicy<T>, IStagePolicy<T>, IStore, IStateStore, Block<T>, IEnumerable<IRenderer<T>>) constructor.

FungibleAssetStateCompleters<T>

Predefined built-in state completers that satisfy FungibleAssetStateCompleter<T> delegate.

IncompleteBlockStatesException

The exception that is thrown when a BlockChain<T> have not calculated the complete states for all blocks, but an operation that needs some lacked states is requested.

MineBlockEventArgs<T>

StateCompleters<T>

Predefined built-in state completers that satisfy StateCompleter<T> delegate.

TotalDifficultyComparer

The default canonical chain comparer (which purpose to be a CanonicalChainComparer).

The chain which has the most TotalDifficulty is considered the greatest, i.e., canonical chain.

Structs

BlockPerception

Pair of a block and the time the local node perceived it.

Purposes to be compared when the canonical chain is determined.

StateCompleterSet<T>

Groups two kinds of state completers.

Delegates

FungibleAssetStateCompleter<T>

A delegate to be called when GetBalance(Address, Currency, Nullable<HashDigest<SHA256>>, FungibleAssetStateCompleter<T>) method encounters a block having incomplete dirty states. GetBalance(Address, Currency, Nullable<HashDigest<SHA256>>, FungibleAssetStateCompleter<T>) method returns this delegate's return value instead for such case.

StateCompleter<T>

A delegate to be called when GetState(Address, Nullable<HashDigest<SHA256>>, StateCompleter<T>) method encounters a block having incomplete dirty states. GetState(Address, Nullable<HashDigest<SHA256>>, StateCompleter<T>) method returns this delegate's return value instead for such case.

In This Article
Back to top Copyright © 2018–2021 Planetarium