Show / Hide Table of Contents

Struct PeerChainState

The blockchain state of BoundPeer.

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

Constructors

| Improve this Doc View Source

PeerChainState(BoundPeer, Int64, BigInteger)

Declaration
public PeerChainState(BoundPeer peer, long tipIndex, BigInteger totalDifficulty)
Parameters
Type Name Description
BoundPeer peer
Int64 tipIndex
BigInteger totalDifficulty

Properties

| Improve this Doc View Source

Peer

The peer with chain.

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

TipIndex

The blockchain tip of the Peer.

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

TotalDifficulty

The total difficulty of the blockchain of the Peer.

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

Methods

| Improve this Doc View Source

ToString()

Declaration
public override readonly string ToString()
Returns
Type Description
String
Overrides
ValueType.ToString()
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium