Struct BlockDemand
Struct represents Swarm's block demand status.
Implements
Inherited Members
Namespace: Libplanet.Net
Assembly: Libplanet.Net.dll
Syntax
public readonly struct BlockDemand : IBlockExcerpt
Constructors
| Improve this Doc View SourceBlockDemand(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 SourceHeader
The BlockHeader of the block to request.
Declaration
public readonly BlockHeader Header
Field Value
Type | Description |
---|---|
BlockHeader |
Peer
The BoundPeer to request block hash from.
Declaration
public readonly BoundPeer Peer
Field Value
Type | Description |
---|---|
BoundPeer |
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 SourceHash
Struct represents Swarm's block demand status.
Declaration
public readonly BlockHash Hash { get; }
Property Value
Type | Description |
---|---|
BlockHash |
Index
Struct represents Swarm's block demand status.
Declaration
public readonly long Index { get; }
Property Value
Type | Description |
---|---|
Int64 |
ProtocolVersion
Struct represents Swarm's block demand status.
Declaration
public readonly int ProtocolVersion { get; }
Property Value
Type | Description |
---|---|
Int32 |