Show / Hide Table of Contents

Class SwarmOptions

Inheritance
Object
SwarmOptions
Namespace: Libplanet.Net
Assembly: Libplanet.Net.dll
Syntax
public class SwarmOptions : object

Properties

| Improve this Doc View Source

BlockBroadcastInterval

Determines how often Swarm<T> braodcasts Libplanet.Net.Messages.BlockHeaderMsg to its peers.

Declaration
public TimeSpan BlockBroadcastInterval { get; set; }
Property Value
Type Description
TimeSpan
Remarks

Broadcasts are also made whenever Tip changes in addition to regular broadcasts determined by this option.

| 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

BootstrapOptions

Various options for the default bootstrap behavior of Swarm<T>.

Declaration
public BootstrapOptions BootstrapOptions { get; set; }
Property Value
Type Description
BootstrapOptions
| 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

MessageTimestampBuffer

The amount of difference in allowed from current local time for a received Message.

Declaration
public TimeSpan? MessageTimestampBuffer { 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

PreloadOptions

Various options for the default preload behavior of Swarm<T>.

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

RefreshLifespan

The lifespan of BoundPeer 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 BoundPeers to keep in routing table permanently. The BoundPeers 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

TimeoutOptions

Various timeout options for sending and receiving Messages through an ITransport.

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

TipLifespan

The lifespan of the Tip. When the tip has not been updated for the configured lifespan, Swarm<T> pulls new blocks from neighbor peers.

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

TxBroadcastInterval

Determines how often Swarm<T> braodcasts Libplanet.Net.Messages.TxIdsMsg to its peers.

Declaration
public TimeSpan TxBroadcastInterval { get; set; }
Property Value
Type Description
TimeSpan
Remarks

Broadcasts are also made whenever Transaction<T> is staged in addition to regular broadcasts determined by this option.

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