-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from kinode-dao/hf/boot-real-node
add boot-real-node
- Loading branch information
Showing
2 changed files
with
103 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# `kit boot-real-node` | ||
|
||
`kit boot-real-node` starts a Kinode connected to the live network, e.g., | ||
|
||
``` | ||
kit boot-real-node | ||
``` | ||
|
||
By default, `boot-real-node` fetches a prebuilt binary and launches the node using it. | ||
Alternatively, `boot-real-node` can build a local Kinode core repo and use the resulting binary. | ||
|
||
## Example Usage | ||
|
||
You can create a new node, creating a home directory at, e.g., `~/<my-new-node-name>.os`, using | ||
|
||
``` | ||
kit boot-real-node --home ~/<my-new-node-name>.os | ||
``` | ||
|
||
or you can boot an existing node with home directory at, e.g., `~/<my-old-node-name>.os`, using | ||
|
||
``` | ||
kit boot-real-node --home ~/<my-old-node-name>.os | ||
``` | ||
|
||
## Discussion | ||
|
||
`kit boot-real-node` makes it easier to run a node by reducing the number of steps to download the Kinode core binary and launch a node. | ||
Be cautious using `boot-real-node` before Kinode core `1.0.0` launch without specifying the `--version` flag: the default `--version latest` may use a new major version of Kinode core! | ||
|
||
## Arguments | ||
|
||
``` | ||
$ kit boot-real-node --help | ||
Boot a real node | ||
Usage: kit boot-real-node [OPTIONS] --home <HOME> | ||
Options: | ||
-r, --runtime-path <PATH> Path to Kinode core repo or runtime binary (overrides --version) | ||
-v, --version <VERSION> Version of Kinode binary to use (overridden by --runtime-path) [default: latest] [possible values: latest, v0.7.4, v0.7.3, v0.7.2] | ||
-p, --port <NODE_PORT> The port to run the real node on [default: 8080] | ||
-o, --home <HOME> Path to home directory for real node | ||
--rpc <RPC_ENDPOINT> Ethereum RPC endpoint (wss://) | ||
--release If set and given --runtime-path, compile release build [default: debug build] | ||
--verbosity <VERBOSITY> Verbosity of node: higher is more verbose [default: 0] | ||
-h, --help Print help | ||
``` | ||
|
||
### `--runtime-path` | ||
|
||
short: `-r` | ||
|
||
Pass to build a local Kinode core repo and use the resulting binary to boot a real node, e.g. | ||
|
||
``` | ||
kit boot-real-node --runtime-path ~/git/kinode | ||
``` | ||
|
||
for a system with the Kinode core repo living at `~/git/kinode`. | ||
|
||
Overrides `--version`. | ||
|
||
### `--version` | ||
|
||
short: `-v` | ||
|
||
Fetch and run a specific version of the binary; defaults to most recent version. | ||
Overridden by `--runtime-path`. | ||
|
||
### `--port` | ||
|
||
short: `-p` | ||
|
||
Run the real node on this port; defaults to `8080`. | ||
|
||
### `--home` | ||
|
||
short: `-o` | ||
|
||
Required field. | ||
Path to home directory for real node. | ||
|
||
### `--rpc` | ||
|
||
The Ethereum RPC endpoint to use, if desired. | ||
|
||
### `--release` | ||
|
||
If `--runtime-path` is given, build the runtime for release; default is debug. | ||
The tradeoffs between the release and default version are described [here](https://doc.rust-lang.org/book/ch01-03-hello-cargo.html?highlight=release#building-for-release). | ||
|
||
### `--verbosity` | ||
|
||
Set the verbosity of the node; higher is more verbose; default is `0`, max is `3`. |