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
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.
Structs
StateCompleterSet<T>
Groups two kinds of state completers, StateCompleters<T> and FungibleAssetStateCompleters<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.