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.

BlockLocator

A class that contains the hashes for a series of blocks.

FungibleAssetStateCompleters<T>

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

IncompleteBlockStatesException

An exception thrown when a BlockChain<T> have not calculated the complete states for all blocks but an operation is requested that requires the missing states.

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.

TotalSupplyStateCompleters<T>

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

Structs

StateCompleterSet<T>

Groups three kinds of state completers, StateCompleters<T>, FungibleAssetStateCompleters<T>, and TotalSupplyStateCompleters<T>.

Interfaces

IBlockChainStates<T>

A minimal interface to get states from a blockchain.

Note that BlockChain<T> implements this interface.

Delegates

FungibleAssetStateCompleter<T>

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

StateCompleter<T>

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

TotalSupplyStateCompleter<T>

A delegate to be called when GetTotalSupply(Currency, BlockHash, TotalSupplyStateCompleter<T>) method encounters a block having incomplete dirty states. GetTotalSupply(Currency, BlockHash, TotalSupplyStateCompleter<T>) method returns this delegate's return value instead for such case.

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