Function resolveSeednodes

  • Takes in a hostname/domain and performs a DNS resolution for related seednode services.

    Parameters

    • hostname: Hostname
    • resolveSrv: ((hostname) => Promise<{
          name: string;
          port: number;
      }[]>) = dns.promises.resolveSrv
        • (hostname): Promise<{
              name: string;
              port: number;
          }[]>
        • Parameters

          • hostname: string

          Returns Promise<{
              name: string;
              port: number;
          }[]>

    Returns Promise<SeedNodes>

Generated using TypeDoc