1.0.2 • Published 3 years ago

@caldera-network/dns-seeder v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

DNS Seeder

Routlinely scans a Chia Blockchain Algorithm Network and stores data in Cloudflare, allowing Chia forks to increase stability and futureproof their blockchains by utilizing DNS Seeders.

Donate

Coinbase

XCH: xch1jhp9n6h30qmqjknmldd3y4948325npfkfs6f7jn8v3u8cgw5ykks9zlvae

Usage

Install

  1. npm i -g @caldera-network/dns-seeder

Commands

NameDescription
dns-seeder startExecutes The Scan & Upload
dns-seeder setupDisplays Config FilePath

Configuration

Cloudflare API Token & Zone ID (Pick One)

  1. Config File
    • apiToken
    • zoneId
  2. Environment Variables
    • CLOUDFLARE_TOKEN
    • CLOUDFLARE_ZONE
  3. dns-seeder start --apiToken <API Token> --zoneId <Zone ID>
  • API Token
  • Zone ID
    • Must be included in your API Token's Zone Resources
    • Can be found at the bottom right of your websites' cloudflare dashboard (https://dash.cloudflare.com/\<Account ID\>/\<Domain\>)

Network Scanner

KeyDescription
networkIde.g. mainnet or testnet7
startNodesArray of reliable nodes to start from
connectionTimeoutUsed to timeout on various operations such as handshake
concurrencyNumber of peers to scan concurrently. Bigger is faster but uses more sockets and memory
keyPathFull node public key
certPathFull node public cert

Default Config

{
    schedule: '*/30 * * * *',
    cloudflare: {
        apiToken: '',
        zoneId: '',
    },
    startNodes: [
        { hostname: '1.1.1.1', port: 8620 },
        { hostname: '2.2.2.2', port: 8620 },
        { hostname: '3.3.3.3', port: 8620 },
    ],
    network: {
        networkId: 'mainnet',
        protocolVersion: '0.0.0',
        softwareVersion: '0.0.0',
    },
    peer: {
        nodeType: 1,
    },
    connectionTimeout: 2500,
    concurrency: 50,
    certPath: '/root/.caldera/mainnet/config/ssl/ca/caldera_ca.crt',
    keyPath: '/root/.caldera/mainnet/config/ssl/ca/caldera_ca.key',
}