Show / Hide Table of Contents

Interface IBlockExcerpt

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

Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public interface IBlockExcerpt

Properties

| Improve this Doc View Source

Hash

A block's hash.

Declaration
BlockHash Hash { get; }
Property Value
Type Description
BlockHash
See Also
PreEvaluationHash
StateRootHash
Hash
| Improve this Doc View Source

Index

A block's index (height).

Declaration
long Index { get; }
Property Value
Type Description
Int64
See Also
Index
| Improve this Doc View Source

ProtocolVersion

A block's protocol version.

Declaration
int ProtocolVersion { get; }
Property Value
Type Description
Int32
See Also
ProtocolVersion
| Improve this Doc View Source

TotalDifficulty

The sum of a block and its all ancestors' difficulties.

Declaration
BigInteger TotalDifficulty { get; }
Property Value
Type Description
BigInteger
See Also
TotalDifficulty

Extension Methods

BlockExcerptExtensions.ToExcerptString(IBlockExcerpt)
BlockExcerptExtensions.ExcerptEquals(IBlockExcerpt, IBlockExcerpt)

See Also

CanonicalChainComparer
TotalDifficultyComparer
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium