Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.98 KB

File metadata and controls

56 lines (43 loc) · 1.98 KB

polycli p2p crawl

Auto-generated documentation.

Table of Contents

Description

Crawl a network on the devp2p layer and generate a nodes JSON file.

polycli p2p crawl [nodes file] [flags]

Usage

If no nodes.json file exists, it will be created.

Flags

  -b, --bootnodes string               comma separated nodes used for bootstrapping. At least one bootnode is
                                       required, so other nodes in the network can discover each other
  -d, --database string                node database for updating and storing client information
      --discovery-dns string           enable EIP-1459, DNS Discovery to recover node list from given ENRTree
  -h, --help                           help for crawl
  -n, --network-id uint                filter discovered nodes by this network ID
  -u, --only-urls                      only writes enode URLs to output (default true)
  -p, --parallel int                   how many parallel discoveries to attempt (default 16)
  -r, --revalidation-interval string   time before retrying to connect to a failed peer (default "10m")
  -t, --timeout string                 time limit for the crawl (default "30m0s")

The command also inherits flags from parent commands.

      --config string      config file (default is $HOME/.polygon-cli.yaml)
      --pretty-logs        output logs in pretty format instead of JSON (default true)
  -v, --verbosity string   log level (string or int):
                             0   - silent
                             100 - panic
                             200 - fatal
                             300 - error
                             400 - warn
                             500 - info (default)
                             600 - debug
                             700 - trace (default "info")

See also