Set a default BN bootstrap address
This commit is contained in:
parent
246dcaa094
commit
4aa12dc408
@ -252,6 +252,7 @@ fn main() {
|
|||||||
.arg(Arg::with_name("server")
|
.arg(Arg::with_name("server")
|
||||||
.value_name("HTTP_SERVER")
|
.value_name("HTTP_SERVER")
|
||||||
.required(true)
|
.required(true)
|
||||||
|
.default_value("http://localhost:5052")
|
||||||
.help("A HTTP server, with a http:// prefix"))
|
.help("A HTTP server, with a http:// prefix"))
|
||||||
.arg(Arg::with_name("libp2p-port")
|
.arg(Arg::with_name("libp2p-port")
|
||||||
.short("p")
|
.short("p")
|
||||||
|
@ -66,7 +66,7 @@ In a new terminal terminal, run:
|
|||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ./beacon_node -b 10 testnet -r bootstrap http://localhost:5052
|
$ ./beacon_node -b 10 testnet -r bootstrap
|
||||||
```
|
```
|
||||||
|
|
||||||
> Notes:
|
> Notes:
|
||||||
@ -74,7 +74,8 @@ $ ./beacon_node -b 10 testnet -r bootstrap http://localhost:5052
|
|||||||
> - The `-b` (or `--port-bump`) increases all the listening TCP/UDP ports of
|
> - The `-b` (or `--port-bump`) increases all the listening TCP/UDP ports of
|
||||||
> the new node to `10` higher. Your first node's HTTP server was at TCP
|
> the new node to `10` higher. Your first node's HTTP server was at TCP
|
||||||
> `5052` but this one will be at `5062`.
|
> `5052` but this one will be at `5062`.
|
||||||
> - The `-r` flag creates a new data directory in your home with a random
|
> - The `-r` flag creates a new data directory with a random string appended
|
||||||
> string appended, to avoid conflicting with any other running node.
|
> (avoids data directory collisions between nodes).
|
||||||
> - The HTTP address is the API of the first node. The new node will download
|
> - The default bootstrap HTTP address is `http://localhost:5052`. The new node
|
||||||
> configuration via HTTP before starting sync via libp2p.
|
> will download configuration via HTTP before starting sync via libp2p.
|
||||||
|
> - See `$ ./beacon_node testnet bootstrap --help` for more configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user