Show / Hide Table of Contents

Class SwarmOptions

Inheritance
Object
SwarmOptions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Net
Assembly: Libplanet.dll
Syntax
public class SwarmOptions

Properties

| Improve this Doc View Source

BlockDemandLifespan

The lifespan of block demand.

Declaration
public TimeSpan BlockDemandLifespan { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

BlockDownloadTimeout

The timeout used to block download in preloading.

Declaration
public TimeSpan BlockDownloadTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

BlockHashRecvTimeout

The base timeout used to receive the block hashes from other peers.

Declaration
public TimeSpan BlockHashRecvTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

BlockRecvTimeout

The base timeout used to receive Block<T> from other peers.

Declaration
public TimeSpan BlockRecvTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

BranchpointThreshold

The threshold for detecting branchpoint when block synchronization. If the branch point is outside threshold from the Tip, using an approximated value.

Declaration
public int BranchpointThreshold { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

BucketSize

The size of each bucket of the Kademlia based routing table.

Declaration
public int BucketSize { get; set; }
Property Value
Type Description
Int32
See Also
RoutingTable
| Improve this Doc View Source

MaximumPollPeers

The maximum number of peers to poll blocks.

Declaration
public int MaximumPollPeers { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

MaxTimeout

The maximum timeout used in Swarm<T>.

Declaration
public TimeSpan MaxTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

MessageLifespan

The lifespan of Message.

Declaration
public TimeSpan? MessageLifespan { get; set; }
Property Value
Type Description
Nullable<TimeSpan>
| Improve this Doc View Source

MinimumBroadcastTarget

The minimum number to select from routing table when broadcast messages. It is 10 by default.

Declaration
public int MinimumBroadcastTarget { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

PollInterval

The interval between block polling.

Declaration
public TimeSpan PollInterval { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

RecentStateRecvTimeout

The timeout used to receive recent states from other peers.

Declaration
public TimeSpan RecentStateRecvTimeout { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

RefreshLifespan

The lifespan of Peer in routing table. RefreshTableAsync(TimeSpan, CancellationToken)

Declaration
public TimeSpan RefreshLifespan { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

RefreshPeriod

The frequency of RefreshTableAsync(TimeSpan, CancellationToken).

Declaration
public TimeSpan RefreshPeriod { get; set; }
Property Value
Type Description
TimeSpan
| Improve this Doc View Source

StaticPeers

The list of Peers to keep in routing table permanently. The Peers in the list will be maintained periodically within StaticPeersMaintainPeriod.

Declaration
public IImmutableSet<BoundPeer> StaticPeers { get; set; }
Property Value
Type Description
IImmutableSet<BoundPeer>
| Improve this Doc View Source

StaticPeersMaintainPeriod

The period of Task maintains static peer.

Declaration
public TimeSpan StaticPeersMaintainPeriod { get; set; }
Property Value
Type Description
TimeSpan
See Also
StaticPeers
| Improve this Doc View Source

TableSize

The number of buckets of the Kademlia based routing table.

Declaration
public int TableSize { get; set; }
Property Value
Type Description
Int32
See Also
RoutingTable
| Improve this Doc View Source

TxRecvTimeout

The base timeout used to receive Transaction<T> from other peers.

Declaration
public TimeSpan TxRecvTimeout { get; set; }
Property Value
Type Description
TimeSpan
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium