Class GossipHttpConfiguration
Inheritance
GossipHttpConfiguration
Assembly: Algorand.dll
Syntax
public class GossipHttpConfiguration
Constructors
|
Edit this page
View Source
GossipHttpConfiguration()
Declaration
public GossipHttpConfiguration()
|
Edit this page
View Source
GossipHttpConfiguration(GossipNodePurpose, GossipNetwork, string)
Builds a configuration by resolving the DNS SRV record that publishes the given network's gossip
nodes for the given purpose (archival or relay), e.g. purpose=Archival, network=VoiMainNet resolves
"_archive._tcp.voimain.mainnet-voi.network". This is the recommended way to get an up-to-date host
list instead of a hardcoded one, since these rotate over time.
Declaration
public GossipHttpConfiguration(GossipNodePurpose purpose, GossipNetwork network, string scheme = "http")
Parameters
| Type |
Name |
Description |
| GossipNodePurpose |
purpose |
Whether to discover archival or relay nodes.
|
| GossipNetwork |
network |
Which network's nodes to discover.
|
| string |
scheme |
URL scheme to prefix each resolved host with.
|
Fields
|
Edit this page
View Source
MainNetArchival
Declaration
public static GossipHttpConfiguration MainNetArchival
Field Value
Properties
|
Edit this page
View Source
GenesisId
Declaration
public string GenesisId { get; set; }
Property Value
|
Edit this page
View Source
Hosts
Declaration
public string[] Hosts { get; set; }
Property Value
Methods
|
Edit this page
View Source
GetGenesisId(GossipNetwork)
The block-gossip genesis ID (network name + genesis version) used in the gossip HTTP path, e.g.
"mainnet-v1.0".
Declaration
public static string GetGenesisId(GossipNetwork network)
Parameters
Returns
|
Edit this page
View Source
GetSrvServiceName(GossipNodePurpose, GossipNetwork)
The DNS SRV service name that publishes gossip nodes of the given purpose for the given network.
Declaration
public static string GetSrvServiceName(GossipNodePurpose purpose, GossipNetwork network)
Parameters
Returns