Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

feat: implement the bootstrapper command #343

Merged
merged 4 commits into from
May 5, 2023

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented May 5, 2023

Overview

Closes #309

This would make it easier to run bootstrapper for the networks needed. Because, you will only need to run the QGB binary in bootstrapping mode, without specifying any EVM address, Celestia RPC/gRPC endpoints.

Also, it doesn't need any data store, or EVM store. The only store it needs is the P2P store (or you can mount specific p2p keys to be used) and that's it.

The command help is:

QGB P2P network bootstrapper command

Usage:
  qgb bootstrapper [command]

Aliases:
  bootstrapper, bs

Available Commands:
  init        Initialize the QGB bootstrapper store. Passed flags have persisted effect.
  p2p         QGB p2p keys manager
  start       Starts the bootstrapper node using the provided home

Flags:
  -h, --help   help for bootstrapper

Use "qgb bootstrapper [command] --help" for more information about a command.

And, the start command:

Starts the bootstrapper node using the provided home

Usage:
  qgb bootstrapper start [flags]

Flags:
  -h, --help                     help for start
      --home string              The qgb bootstrappers home directory (default "/home/midnight/.bootstrapper")
  -q, --p2p-listen-addr string   MultiAddr for the p2p peer to listen on (default "/ip4/0.0.0.0/tcp/30000")
  -p, --p2p-nickname string      Nickname of the p2p private key to use (if not provided, an existing one from the p2p store or a newly generated one will be used)

@rach-id rach-id added the p2p p2p network related label May 5, 2023
@rach-id rach-id requested a review from sysrex May 5, 2023 10:02
@rach-id rach-id requested a review from evan-forbes as a code owner May 5, 2023 10:02
@rach-id rach-id self-assigned this May 5, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #343 (59b2bab) into main (b0a58b2) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #343   +/-   ##
=======================================
  Coverage   43.76%   43.76%           
=======================================
  Files          26       26           
  Lines        1990     1990           
=======================================
  Hits          871      871           
  Misses        998      998           
  Partials      121      121           

evan-forbes
evan-forbes previously approved these changes May 5, 2023
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool new node type

@rach-id rach-id merged commit 9aa83fc into celestiaorg:main May 5, 2023
rach-id added a commit that referenced this pull request May 8, 2023
* feat: implement the bootstrapper command

* chore: typos

* feat: also allow to connect to other bootstrappers

(cherry picked from commit 9aa83fc)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p2p p2p network related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement a special bootstrapper node
3 participants