public RemoteRPCNode(int port, string cronExplorerURL, CronNodesKind kind) : base(cronExplorerURL) { switch (kind) { case CronNodesKind.CRON_GLOBAL: { nodes = new string[1]; for (int i = 0; i < nodes.Length; i++) { nodes[i] = $"http://seed{i+1}.cron.global:{port}"; } break; } /* * case CronNodesKind.COZ: * { * if (port == 10331) * { * port = 443; * } * * nodes = new string[5]; * for (int i = 0; i < nodes.Length; i++) * { * nodes[i] = $"http://seed{i}.cityofzion.io:{port}"; * } * break; * } * * case CronNodesKind.TRAVALA: * { * nodes = new string[5]; * for (int i = 0; i < nodes.Length; i++) * { * nodes[i] = $"http://seed{i}.travala.com:{port}"; * } * break; * } */ } }
public static CronRPC ForMainNet(CronNodesKind kind = CronNodesKind.CRON_GLOBAL) { throw new Exception("no public CRON JSON-RPC published yet"); // return new RemoteRPCNode(<port>, "<cron-node-url>", kind); }