From ce698306e4ba6ff7fd0da94837548275221611c2 Mon Sep 17 00:00:00 2001 From: Oak Date: Wed, 6 Nov 2024 18:35:28 +0000 Subject: [PATCH] refactor: change relay to bootstrap mode (#239) --- packages/node/README.md | 4 ++-- packages/node/src/cli/index.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node/README.md b/packages/node/README.md index 1c01ec96..bf467ecb 100644 --- a/packages/node/README.md +++ b/packages/node/README.md @@ -30,13 +30,13 @@ topology-node --help You can run a bootstrap node using the following command: ```bash -pnpm relay --config configs/bootstrap.json +pnpm cli bootstrap --config configs/bootstrap.json ``` If you want to run a local bootstrap node, you can use the following command: ```bash -pnpm relay --config configs/local-bootstrap.json +pnpm cli bootstrap --config configs/local-bootstrap.json ``` ### Integration diff --git a/packages/node/src/cli/index.ts b/packages/node/src/cli/index.ts index 822ac3d3..93edc214 100644 --- a/packages/node/src/cli/index.ts +++ b/packages/node/src/cli/index.ts @@ -8,5 +8,5 @@ program.addOption(new Option("-c, --config ", "config file")); program.addOption( new Option("-m, --mode ", "mode to run in") .default("node") - .choices(["node", "relay"]), + .choices(["node", "bootstrap"]), );