Show / Hide Table of Contents

Class BitswapLedger

Statistics on the IBitswapApi blocks exchanged with another Peer.

Inheritance
Object
BitswapLedger
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Ipfs.CoreApi
Assembly: Ipfs.Core.dll
Syntax
public class BitswapLedger

Properties

| Improve this Doc View Source

BlocksExchanged

The number of blocks exchanged with the Peer.

Declaration
public ulong BlocksExchanged { get; set; }
Property Value
Type Description
UInt64

The number of blocks sent by the peer or sent by us to the peer.

| Improve this Doc View Source

DataReceived

The number of bytes sent by the Peer to us.

Declaration
public ulong DataReceived { get; set; }
Property Value
Type Description
UInt64

The number of bytes.

| Improve this Doc View Source

DataSent

The number of bytes sent by us to the Peer

Declaration
public ulong DataSent { get; set; }
Property Value
Type Description
UInt64

The number of bytes.

| Improve this Doc View Source

DebtRatio

The calculated debt to the peer.

Declaration
public float DebtRatio { get; }
Property Value
Type Description
Single

DataSent divided by DataReceived. A value less than 1 indicates that we are in debt to the Peer.

| Improve this Doc View Source

IsInDebt

Determines if we owe the Peer some blocks.

Declaration
public bool IsInDebt { get; }
Property Value
Type Description
Boolean

true if we owe data to the peer; otherwise, false.

| Improve this Doc View Source

Peer

The Peer that pertains to this ledger.

Declaration
public Peer Peer { get; set; }
Property Value
Type Description
Peer

The peer that is being monitored.

See Also

LedgerAsync(Peer, CancellationToken)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX