Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce basic cli command and help menu #21

Closed
2 tasks
Rjected opened this issue Mar 21, 2024 · 0 comments · Fixed by #23
Closed
2 tasks

Introduce basic cli command and help menu #21

Rjected opened this issue Mar 21, 2024 · 0 comments · Fixed by #23
Labels
A-cli Related to the alphanet CLI C-enhancement New feature or request C-tracking-issue An issue that collects information about a broad development initiative

Comments

@Rjected
Copy link
Member

Rjected commented Mar 21, 2024

Right now the alphanet binary just runs the node, with no help options, options for overriding the discovery port, etc:

dan@Dans-MacBook-Pro-4 ~/p/alphanet (main) [101]> ./target/debug/alphanet --help
2024-03-21T19:55:55.396789Z  INFO Configuration loaded path="/var/folders/65/m26_cf0d1lbdnp4dvzztr0th0000gn/T/reth-test-MouAvtXj/reth.toml"
2024-03-21T19:55:55.397075Z  INFO Database opened
2024-03-21T19:55:55.413599Z  INFO Pre-merge hard forks (block based):
- Frontier                         @0
- Homestead                        @0
- Tangerine                        @0
- SpuriousDragon                   @0
- Byzantium                        @0
- Constantinople                   @0
- Petersburg                       @0
- Istanbul                         @0
- Berlin                           @0
- London                           @0
Merge hard forks:
- Paris                            @0 (network is not known to be merged)

Post-merge hard forks (timestamp based):
- Shanghai                         @0
- Cancun                           @0

2024-03-21T19:55:55.470785Z  INFO Transaction pool initialized
2024-03-21T19:55:55.470874Z  INFO Connecting to P2P network
2024-03-21T19:55:55.474633Z  INFO StaticFileProducer initialized
2024-03-21T19:55:55.475025Z  INFO Pruner initialized prune_config=PruneConfig { block_interval: 5, segments: PruneModes { sender_recovery: None, transaction_lookup: None, receipts: None, account_history: None, storage_history: None, receipts_log_filter: ReceiptsLogPruneConfig({}) } }
2024-03-21T19:55:55.475238Z  INFO Consensus engine initialized
2024-03-21T19:55:55.475336Z  INFO Engine API handler initialized

We should add most of the reth CLI commands, as well as the help menu.

  • CLI commands
  • Help menu

We should do something similar to how op-reth is built and launched:
https://github.com/paradigmxyz/reth/blob/6eb7397aa2c49c90922691cb0e176d973bbb441a/bin/reth/src/optimism.rs#L26

@Rjected Rjected added C-tracking-issue An issue that collects information about a broad development initiative C-enhancement New feature or request A-cli Related to the alphanet CLI labels Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Related to the alphanet CLI C-enhancement New feature or request C-tracking-issue An issue that collects information about a broad development initiative
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant