Show / Hide Table of Contents

Struct BlockDemand

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

Implements
IBlockExcerpt
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 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
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium