thrownewConfigurationException("When running as a DNS Seed service, the -dnshostname, -dnsnameserver and -dnsmailbox arguments must be specified on the command line.");
};
// Run as a full node with DNS or just a DNS service?
IFullNodenode;
if(args.Contains("-dnsfullnode"))
{
// Build the Dns full node.
node=newFullNodeBuilder()
.UseNodeSettings(nodeSettings)
.UsePosConsensus()
.UseBlockStore()
.UseMempool()
.UseWallet()
.AddPowPosMining()
.UseApi()
.AddRPC()
.UseDns(serviceTest)
.Build();
}
else
{
// Build the Dns node.
node=newFullNodeBuilder()
.UseNodeSettings(nodeSettings)
.UsePosConsensus()
.UseApi()
.AddRPC()
.UseDns(serviceTest)
.Build();
}
// Run node.
if(node!=null)
awaitnode.RunAsync();
}
catch(Exceptionex)
{
Console.WriteLine("There was a problem initializing the node. Details: '{0}'",ex.Message);