Show / Hide Table of Contents

Namespace Libplanet.Blocks

Classes

Block<T>

The complete block including all block contents and done proof-of-work and action evaluation.

BlockContent<T>

A block content without any proofs like nonce or hash. This represents contents of a block that is not yet mined.

BlockContentExtensions

Convenient extension methods for IBlockContent<T>.

BlockExceedingTransactionsException

The exception that is thrown when a Block<T> has too many Transactions (i.e., more than the number specified by GetMaxTransactionsPerBlock(Int64)).

BlockExcerptExtensions

The extension methods for IBlockExcerpt.

BlockHeader

Block header containing information about Block<T>s except transactions.

BlockInsufficientTxsException

The exception that is thrown when a Block<T>'s Transactions Count is too small.

BlockMarshaler

Marshaling and unmarshaling block data.

BlockMetadata

A block metadata without transactions or any proofs like nonce or hash. This represents metadata of a block that is not yet mined nor proven.

To represent a block content including its metadata and transactions, use BlockContent<T>, which is its subclass.

BlockMetadataExtensions

Convenient extension methods for IBlockMetadata.

BlockPolicyViolationException

An exception returned when a Block<T> violates a IBlockPolicy<T>.

HashAlgorithmTable

InvalidBlockBytesLengthException

The exception that is thrown when a Block<T>'s BytesLength (i.e., the length of bytes in its serialized format) is too long.

InvalidBlockDifficultyException

InvalidBlockException

Serves as the base class for exceptions related Block<T>s' integrity and validity.

InvalidBlockHashException

InvalidBlockIndexException

InvalidBlockNonceException

InvalidBlockPreEvaluationHashException

The exception that is thrown when the a Block<T>'s PreEvaluationHash is invalid.

InvalidBlockPreviousHashException

InvalidBlockProtocolVersionException

The exception that is thrown when a Block<T>'s ProtocolVersion (or a BlockHeader's ProtocolVersion) is invalid.

InvalidBlockPublicKeyException

An exception thrown when a block's public key is invalid.

InvalidBlockSignatureException

An exception thrown when a block's signature is invalid.

InvalidBlockStateRootHashException

The exception that is thrown when the state root hash in the block has mismatches to the state root hash of the trie on the block executed in local.

InvalidBlockTimestampException

InvalidBlockTotalDifficultyException

InvalidBlockTxHashException

InvalidGenesisBlockException

The exception that is thrown when the genesis block the IStore contains mismatches to the genesis block the BlockChain<T> constructor (i.e., network) expects or the first block of Libplanet.Blockchain.BlockLocator which the IStore doesn't contain, because the block which IStore doesn't means the genesis block in other network.

PreEvaluationBlock<T>

A block candidate without evaluating actions (in its Transactions and a possible BlockAction) and state root hash.

PreEvaluationBlockHeader

A block candidate without evaluating actions (in its transactions and a possible BlockAction) and state root hash.

Structs

BlockHash

A value type to represent SHA-256 digest of Block<T> data.

BlockPerception

An implementation of IBlockExcerpt with a timestamp attached.

Used for keeping track of when the local node has percieved IBlockExcerpts.

Interfaces

IBlockContent<T>

A common interface for blocks that do not have any proofs, but have their metadata and containing Transactions.

IBlockExcerpt

The very essential metadata extracted from a block. This purposes to determine the canonical chain.

IBlockHeader

A common interface for blocks that have their proof-of-work Nonces and StateRootHashes, but no transactions.

IBlockMetadata

A common interface for blocks that do not have any proofs nor transactions (but only TxHash).

IPreEvaluationBlock<T>

A common interface for blocks that have their proof-of-work Nonces and Transactions, but are not evaluated yet (i.e., their state root hashes are not yet determined).

IPreEvaluationBlockHeader

A common interface for blocks that have their proof-of-work Nonces, but are not evaluated yet (i.e., state root hash is not yet determined).

Delegates

HashAlgorithmGetter

The delegate to determine a hash algorithm to use for a blockIndex.

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