Show / Hide Table of Contents

Interface IBlockContent<T>

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

Inherited Members
IBlockMetadata.ProtocolVersion
IBlockMetadata.Index
IBlockMetadata.Timestamp
IBlockMetadata.Miner
IBlockMetadata.PublicKey
IBlockMetadata.Difficulty
IBlockMetadata.TotalDifficulty
IBlockMetadata.PreviousHash
IBlockMetadata.TxHash
Namespace: Libplanet.Blocks
Assembly: Libplanet.dll
Syntax
public interface IBlockContent<T> : IBlockMetadata where T : IAction, new()
Type Parameters
Name Description
T

A class implementing IAction to include. This type parameter is aligned with Transaction<T>'s type parameter.

Properties

| Improve this Doc View Source

Transactions

Transactions belonging to the block.

Declaration
IReadOnlyList<Transaction<T>> Transactions { get; }
Property Value
Type Description
IReadOnlyList<Transaction<T>>
Remarks

This is always ordered by Id.

Extension Methods

BlockMetadataExtensions.Copy(IBlockMetadata)
BlockMetadataExtensions.ValidateTimestamp(IBlockMetadata)
BlockMetadataExtensions.ValidateTimestamp(IBlockMetadata, DateTimeOffset)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium