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

feature(op-node): simplify op-node start #179

Merged
merged 4 commits into from
Apr 25, 2024

Conversation

redhdx
Copy link
Contributor

@redhdx redhdx commented Apr 23, 2024

Description

Simplify op-node start

Rationale

Currently, starting op-node requires manual setting of many parameters. In order to facilitate users to start nodes, some default configuration added for opBNB mainnet and testnet.

Example

Currently, there are two network configurations, opBNB mainnet and testnet by default. You can select the corresponding network configuration by setting --network= opBNBMainnet or --network=opBNBTestnet. You also need to set some config manually:

  • --l1=L1_RPC
  • --l2=L2_RPC
  • --l2.jwt-secret=./jwt.txt
  • --snapshotlog.file=./snapshot.log

For example:

 ./op-node --network=opBNBMainnet --l2.jwt-secret=./jwt.txt --l1=L1_RPC --l2=L2_RPC --snapshotlog.file=./snapshot.log
  ./op-node --network=opBNBTestnet --l2.jwt-secret=./jwt.txt --l1=L1_RPC --l2=L2_RPC --snapshotlog.file=./snapshot.log

Changes

Notable changes:

  • add some default settings for opBNB

Copy link
Contributor

@krish-nr krish-nr left a comment

Choose a reason for hiding this comment

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

/LGTM

@owen-reorg owen-reorg merged commit 79487d1 into bnb-chain:develop Apr 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants