Show / Hide Table of Contents

Class BlockDownloadState

Indicates a progress of downloading blocks.

Inheritance
Object
PreloadState
BlockDownloadState
Implements
IEquatable<BlockDownloadState>
Inherited Members
PreloadState.TotalPhase
PreloadState.Equals(PreloadState)
Namespace: Libplanet.Net
Assembly: Libplanet.Net.dll
Syntax
public class BlockDownloadState : PreloadState, IEquatable<BlockDownloadState>

Properties

| Improve this Doc View Source

CurrentPhase

The current phase.

Declaration
public override int CurrentPhase { get; }
Property Value
Type Description
Int32
Overrides
PreloadState.CurrentPhase
| Improve this Doc View Source

ReceivedBlockCount

The number of currently received blocks.

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

ReceivedBlockHash

The hash digest of the block just received.

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

SourcePeer

The peer which sent the block.

Declaration
public BoundPeer SourcePeer { get; }
Property Value
Type Description
BoundPeer
| Improve this Doc View Source

TotalBlockCount

Total number of blocks to receive in the current batch.

Declaration
public long TotalBlockCount { get; }
Property Value
Type Description
Int64

Methods

| Improve this Doc View Source

Equals(BlockDownloadState)

Declaration
public bool Equals(BlockDownloadState other)
Parameters
Type Name Description
BlockDownloadState other
Returns
Type Description
Boolean
| Improve this Doc View Source

Equals(Nullable<Object>)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
Nullable<Object> obj
Returns
Type Description
Boolean
Overrides
PreloadState.Equals(Nullable<Object>)
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
PreloadState.GetHashCode()

Operators

| Improve this Doc View Source

Equality(BlockDownloadState, BlockDownloadState)

Declaration
public static bool operator ==(BlockDownloadState left, BlockDownloadState right)
Parameters
Type Name Description
BlockDownloadState left
BlockDownloadState right
Returns
Type Description
Boolean
| Improve this Doc View Source

Inequality(BlockDownloadState, BlockDownloadState)

Declaration
public static bool operator !=(BlockDownloadState left, BlockDownloadState right)
Parameters
Type Name Description
BlockDownloadState left
BlockDownloadState right
Returns
Type Description
Boolean

Implements

IEquatable<>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2022 Planetarium