https://github.com/protolambda/eth2-bootnode
bootnode utility for Eth2
https://github.com/protolambda/eth2-bootnode
Last synced: 8 months ago
JSON representation
bootnode utility for Eth2
- Host: GitHub
- URL: https://github.com/protolambda/eth2-bootnode
- Owner: protolambda
- License: mit
- Created: 2020-07-26T21:34:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-05T14:40:09.000Z (about 4 years ago)
- Last Synced: 2025-02-26T04:22:42.255Z (10 months ago)
- Language: Go
- Size: 174 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Eth2 bootnode
Minimal bootnode utility, with ENR options, geth discv5 logging, and persisted local node DB.
And a minimal HTTP endpoint, to serve the local ENR, in common base64 ENR representation, on the `/enr` route.
Options:
```
--priv Private key, in raw hex encoded format (default: ? (no private key data)) (type: P2P Private key)
--enr-ip IP to put in ENR (default: ) (type: ip)
--enr-udp UDP port to put in ENR (default: 0) (type: uint16)
--listen-ip Listen IP. (default: 0.0.0.0) (type: ip)
--listen-udp Listen UDP port. Will try ENR port otherwise. (default: 0) (type: uint16)
--api-addr Address to bind HTTP API server to. API is disabled if empty. (default: 0.0.0.0:8000) (type: string)
--node-db Path to dv5 node DB. Memory DB if empty. (type: string)
--bootnodes Optionally befriend other bootnodes (type: stringSlice)
--color Log with colors (default: true) (type: bool)
--level Log level (default: debug) (type: string)
```
[Docker: `protolambda/eth2-bootnode`](https://hub.docker.com/repository/docker/protolambda/eth2-bootnode)
## License
MIT, see [`LICENSE`](./LICENSE) file.