Documentation ¶ Overview ¶ Package bootnode is responsible for assembling, running and cleanly shutting down a swap bootnode. Index ¶ func RunBootnode(ctx context.Context, cfg *Config) error type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RunBootnode ¶ func RunBootnode(ctx context.Context, cfg *Config) error RunBootnode assembles and runs a bootnode instance, blocking until the node is shut down. Typically, shutdown happens because a signal handler cancels the passed in context, or when the shutdown RPC method is called. Types ¶ type Config ¶ type Config struct { DataDir string Bootnodes []string P2PListenIP string Libp2pPort uint16 Libp2pKeyFile string RPCPort uint16 } Config provides the configuration for a bootnode. Source Files ¶ View all Source files bootnode.go Click to show internal directories. Click to hide internal directories.