bootnode

bootnode runs a bootstrap node for the Ethereum Discovery Protocol.

配置项,种子节点。

        listenAddr  = flag.String("addr", ":53719", "listen address")
        genKey      = flag.String("genkey", "", "generate a node key")
        writeAddr   = flag.Bool("writeaddress", false, "write out the node's pubkey hash and quit")
        nodeKeyFile = flag.String("nodekey", "", "private key filename")
        nodeKeyHex  = flag.String("nodekeyhex", "", "private key as hex (for testing)")
        natdesc     = flag.String("nat", "none", "port mapping mechanism (any|none|upnp|pmp|extip:<IP>)")
        netrestrict = flag.String("netrestrict", "", "restrict network communication to the given IP networks (CIDR masks)")
        runv5       = flag.Bool("v5", false, "run a v5 topic discovery bootnode")
        verbosity   = flag.Int("verbosity", int(log.LvlInfo), "log verbosity (0-9)")
        vmodule     = flag.String("vmodule", "", "log verbosity pattern")

Last updated

Was this helpful?