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>.
BlockExcerptExtensions
The extension methods for IBlockExcerpt.
BlockHeader
Block header containing information about Block<T>s except transactions.
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>.
InvalidBlockBytesLengthException
An exception thrown when a Block<T>'s encoded bytes exceeds GetMaxBlockBytes(Int64).
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
InvalidBlockTxCountException
An exception thrown when the count of Transactions does not follow the constraint provided by IBlockPolicy<T>.
InvalidBlockTxCountPerSignerException
An exception thrown when the count of Transactions does not follow the constraint provided by IBlockPolicy<T>.
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 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).