Class BitswapLedger
Statistics on the IBitswapApi blocks exchanged with another Peer.
Inherited Members
Namespace: Ipfs.CoreApi
Assembly: Ipfs.Core.dll
Syntax
public class BitswapLedger
Properties
| Improve this Doc View SourceBlocksExchanged
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. |
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. |
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. |
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. |
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. |
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. |