Skip to content

chore: support more evn configuration in tool;#3072

Merged
zzzckck merged 5 commits intobnb-chain:developfrom
galaio:new-broadcast
May 8, 2025
Merged

chore: support more evn configuration in tool;#3072
zzzckck merged 5 commits intobnb-chain:developfrom
galaio:new-broadcast

Conversation

@galaio
Copy link
Copy Markdown
Contributor

@galaio galaio commented May 7, 2025

Description

This PR supports more scenarios for local/QA testing, it can create fullnode, enable more EVN features for testing, and refactor some code.

Example

./bin/geth init-network -h                              
NAME:
   geth init-network - Bootstrap and initialize a new genesis block, and nodekey, config files for network nodes

USAGE:
   geth init-network [command options] <genesisPath>

CATEGORY:
   BLOCKCHAIN COMMANDS

DESCRIPTION:
   
   The init-network command initializes a new genesis block, definition for the network, config files for network nodes.
   It expects the genesis file as argument.

OPTIONS:
   
    --init.dir value                                                      
          the direction to store initial network data
   
    --init.evn-sentry-register          (default: false)                  
          whether to add evn sentry NodeIDs in ETH.ValidatorNodeIDsToAdd
   
    --init.evn-sentry-whitelist         (default: false)                  
          whether to add evn sentry NodeIDs in Node.P2P.EVNNodeIdsWhitelist
   
    --init.evn-validator-register       (default: false)                  
          whether to add evn validator NodeIDs in ETH.ValidatorNodeIDsToAdd
   
    --init.evn-validator-whitelist      (default: false)                  
          whether to add evn validator NodeIDs in Node.P2P.EVNNodeIdsWhitelist
   
    --init.fullnode                     (default: false)                  
          whether to add a full node to the network
   
    --init.fullnode-ips value                                             
          the ips of each full node in the network, example '192.168.0.1,192.168.0.2'
   
    --init.fullnode-ports value                                           
          the ports of each full node in the network, example '30311,30312'
   
    --init.fullnode-size value          (default: 1)                      
          the size of the full node
   
    --init.ips value                                                      
          the ips of each node in the network, example '192.168.0.1,192.168.0.2'
   
    --init.p2p-port value               (default: 30311)                  
          the p2p port of the nodes in the network
   
    --init.sentrynode                   (default: false)                  
          whether to add a sentry node to the network
   
    --init.sentrynode-ips value                                           
          the ips of each sentry node in the network, example '192.168.0.1,192.168.0.2'
   
    --init.sentrynode-ports value                                         
          the ports of each sentry node in the network, example '30311,30312'
   
    --init.sentrynode-size value        (default: 1)                      
          the size of the sentry node
   
    --init.size value                   (default: 1)                      
          the size of the network

   ETHEREUM

   
    --config value                                                         ($GETH_CONFIG)
          TOML configuration file

Changes

Notable changes:

  • chore: support more evn configuration in tool;
  • ...

@galaio galaio requested review from buddh0 and zzzckck May 7, 2025 07:01
zzzckck
zzzckck previously approved these changes May 8, 2025
Co-authored-by: zzzckck <152148891+zzzckck@users.noreply.github.com>
@zzzckck zzzckck merged commit 9933742 into bnb-chain:develop May 8, 2025
7 checks passed
galaio added a commit to galaio/bsc that referenced this pull request May 29, 2025
galaio added a commit to galaio/bsc that referenced this pull request May 29, 2025
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