Show / Hide Table of Contents

Struct BlockDemand

Struct represents Swarm'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.Net.dll
Syntax
public readonly struct BlockDemand : IBlockExcerpt

Constructors

| Improve this Doc View Source

BlockDemand(BlockHeader, BoundPeer, DateTimeOffset)

Struct represents Swarm's block demand status.

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

Struct represents Swarm's block demand status.

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

Index

Struct represents Swarm's block demand status.

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

ProtocolVersion

Struct represents Swarm's block demand status.

Declaration
public readonly int ProtocolVersion { get; }
Property Value
Type Description
Int32

Implements

IBlockExcerpt
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium