Show / Hide Table of Contents

Struct BlockDemand

Struct represents Swarm<T>'s block demand status.

Implements
IBlockExcerpt
Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace: Libplanet.Net
Assembly: Libplanet.dll
Syntax
public readonly struct BlockDemand : IBlockExcerpt

Constructors

| Improve this Doc View Source

BlockDemand(BlockHeader, BoundPeer, DateTimeOffset)

Declaration
public BlockDemand(BlockHeader header, BoundPeer peer, DateTimeOffset timestamp)
Parameters
Type Name Description
BlockHeader header
BoundPeer peer
DateTimeOffset timestamp

Fields

| Improve this Doc View Source

Header

The BlockHeader of the block to request.

Declaration
public readonly BlockHeader Header
Field Value
Type Description
BlockHeader
| Improve this Doc View Source

Peer

The BoundPeer to request block hash from.

Declaration
public readonly BoundPeer Peer
Field Value
Type Description
BoundPeer
| Improve this Doc View Source

Timestamp

The DateTimeOffset when the corresponding block information was received.

Declaration
public readonly DateTimeOffset Timestamp
Field Value
Type Description
DateTimeOffset

Properties

| Improve this Doc View Source

Hash

Declaration
public readonly BlockHash Hash { get; }
Property Value
Type Description
BlockHash
| Improve this Doc View Source

Index

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

ProtocolVersion

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

TotalDifficulty

Declaration
public readonly BigInteger TotalDifficulty { get; }
Property Value
Type Description
BigInteger

Implements

IBlockExcerpt

Extension Methods

BlockExcerptExtensions.ToExcerptString(IBlockExcerpt)
BlockExcerptExtensions.ExcerptEquals(IBlockExcerpt, IBlockExcerpt)
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium