From 19f343b979de3bce795d785fa8e6d9bbb7071539 Mon Sep 17 00:00:00 2001 From: jangko Date: Thu, 20 May 2021 13:39:44 +0700 Subject: [PATCH] hive: use HIVE_NETWORK_ID to initialize networkId if available devp2p/eth simulator is using this HIVE_NETWORK_ID to configure client --- hive_integration/nimbus/nimbus.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hive_integration/nimbus/nimbus.sh b/hive_integration/nimbus/nimbus.sh index 4db6b2c95..279cdad10 100644 --- a/hive_integration/nimbus/nimbus.sh +++ b/hive_integration/nimbus/nimbus.sh @@ -13,6 +13,7 @@ # # - [x] HIVE_BOOTNODE enode URL of the remote bootstrap node # - [x] HIVE_NETWORK_ID network ID number to use for the eth protocol +# - [x] HIVE_CHAIN_ID chain ID is used in transaction signature process # - [ ] HIVE_TESTNET whether testnet nonces (2^20) are needed # - [ ] HIVE_NODETYPE sync and pruning selector (archive, full, light) # @@ -58,6 +59,10 @@ if [ "$HIVE_BOOTNODE" != "" ]; then FLAGS="$FLAGS --bootnodes:$HIVE_BOOTNODE" fi +if [ "$HIVE_NETWORK_ID" != "" ]; then + FLAGS="$FLAGS --networkid:$HIVE_NETWORK_ID" +fi + # Configure the genesis chain and use it as start block and dump it to stdout echo "Supplied genesis state:" jq -f /mapper.jq /genesis.json | tee /genesis-start.json