Class SwarmOptions
Inherited Members
Namespace: Libplanet.Net
Assembly: Libplanet.dll
Syntax
public class SwarmOptions
Properties
| Improve this Doc View SourceBlockDemandLifespan
The lifespan of block demand.
Declaration
public TimeSpan BlockDemandLifespan { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
BlockDownloadTimeout
The timeout used to block download in preloading.
Declaration
public TimeSpan BlockDownloadTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
BlockHashRecvTimeout
The base timeout used to receive the block hashes from other peers.
Declaration
public TimeSpan BlockHashRecvTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
BlockRecvTimeout
The base timeout used to receive Block<T> from other peers.
Declaration
public TimeSpan BlockRecvTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
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 |
MaxTimeout
The maximum timeout used in Swarm<T>.
Declaration
public TimeSpan MaxTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
MessageLifespan
The lifespan of Message.
Declaration
public TimeSpan? MessageLifespan { 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 |
PollInterval
The interval between block polling.
Declaration
public TimeSpan PollInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
RecentStateRecvTimeout
The timeout used to receive recent states from other peers.
Declaration
public TimeSpan RecentStateRecvTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
RefreshLifespan
The lifespan of Peer 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 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> |
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 SourceTxRecvTimeout
The base timeout used to receive Transaction<T> from other peers.
Declaration
public TimeSpan TxRecvTimeout { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |