Class SwarmOptions
Inherited Members
Namespace: Libplanet.Net.Options
Assembly: Libplanet.Net.dll
Syntax
public class SwarmOptions
Properties
| Improve this Doc View SourceBlockBroadcastInterval
Determines how often Swarm broadcasts 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.
BlockDemandLifespan
The lifespan of block demand.
Declaration
public TimeSpan BlockDemandLifespan { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
BootstrapOptions
Various options for the default bootstrap behavior of Swarm.
Declaration
public BootstrapOptions BootstrapOptions { get; set; }
Property Value
Type | Description |
---|---|
BootstrapOptions |
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 |
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
| Improve this Doc View SourceMaximumPollPeers
The maximum number of peers to poll blocks.
Declaration
public int MaximumPollPeers { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
MessageTimestampBuffer
Declaration
public TimeSpan? MessageTimestampBuffer { get; set; }
Property Value
Type | Description |
---|---|
Nullable<TimeSpan> |
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 |
PreloadOptions
Various options for the default preload behavior of Swarm.
Declaration
public PreloadOptions PreloadOptions { get; set; }
Property Value
Type | Description |
---|---|
PreloadOptions |
RefreshLifespan
The lifespan of BoundPeer in routing table. RefreshTableAsync(TimeSpan, CancellationToken)
Declaration
public TimeSpan RefreshLifespan { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
RefreshPeriod
The frequency of RefreshTableAsync(TimeSpan, CancellationToken).
Declaration
public TimeSpan RefreshPeriod { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
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> |
StaticPeersMaintainPeriod
The period of Task
maintains static peer.
Declaration
public TimeSpan StaticPeersMaintainPeriod { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
See Also
| Improve this Doc View SourceTableSize
The number of buckets of the Kademlia based routing table.
Declaration
public int TableSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
See Also
| Improve this Doc View SourceTaskRegulationOptions
Various task spawning regulations for handling received Messages through an ITransport.
Declaration
public TaskRegulationOptions TaskRegulationOptions { get; set; }
Property Value
Type | Description |
---|---|
TaskRegulationOptions |
TimeoutOptions
Various timeout options for sending and receiving Messages through an ITransport.
Declaration
public TimeoutOptions TimeoutOptions { get; set; }
Property Value
Type | Description |
---|---|
TimeoutOptions |
TipLifespan
The lifespan of the Tip. When the tip has not been updated for the configured lifespan, Swarm pulls new blocks from neighbor peers.
Declaration
public TimeSpan TipLifespan { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
TxBroadcastInterval
Determines how often Swarm broadcasts 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 is staged in addition to regular broadcasts determined by this option.