mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 21:34:33 +00:00
hive: fixes readme.md and nimbus.sh
the introduction of new config requires the new command line options be applied to the commands in nimbus.sh
This commit is contained in:
parent
a3badea928
commit
be91bb349b
@ -64,31 +64,14 @@ or
|
|||||||
|
|
||||||
## Available test suites / simulators
|
## Available test suites / simulators
|
||||||
|
|
||||||
- `devp2p/eth`
|
|
||||||
- `devp2p/discv4`
|
|
||||||
- `ethereum/sync`
|
|
||||||
- `ethereum/consensus`
|
|
||||||
- `ethereum/rpc`
|
|
||||||
- `ethereum/graphql`
|
|
||||||
- `smoke/network`
|
|
||||||
- `smoke/genesis`
|
|
||||||
- `smoke/clique`
|
|
||||||
|
|
||||||
# Current state of the tests
|
|
||||||
|
|
||||||
These Hive suites/simulators can be run:
|
|
||||||
|
|
||||||
- `ethereum/consensus`
|
|
||||||
- `ethereum/graphql`
|
|
||||||
- `ethereum/rpc`
|
|
||||||
- `smoke/network`
|
|
||||||
- `smoke/genesis`
|
|
||||||
- `devp2p/discv4`
|
|
||||||
- `devp2p/eth` -> require at least 2 clients
|
- `devp2p/eth` -> require at least 2 clients
|
||||||
|
- `devp2p/discv4`
|
||||||
- `ethereum/sync`
|
- `ethereum/sync`
|
||||||
|
- `ethereum/consensus`
|
||||||
These Hive suites/simulators don't work with `nimbus-eth1` currently:
|
- `ethereum/rpc`
|
||||||
|
- `ethereum/graphql`
|
||||||
|
- `smoke/network`
|
||||||
|
- `smoke/genesis`
|
||||||
- `smoke/clique`
|
- `smoke/clique`
|
||||||
|
|
||||||
The number of passes and fails output at the time of writing (2021-05-20) is:
|
The number of passes and fails output at the time of writing (2021-05-20) is:
|
||||||
|
@ -29,7 +29,7 @@ RUN apt-get update \
|
|||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
|
||||||
COPY --from=build /usr/bin/nimbus /usr/bin/nimbus
|
COPY --from=build /usr/bin/nimbus /usr/bin/nimbus
|
||||||
RUN usr/bin/nimbus -v > /version.txt
|
RUN usr/bin/nimbus --version > /version.txt
|
||||||
|
|
||||||
# Inject the startup script and helper files
|
# Inject the startup script and helper files
|
||||||
COPY *.sh *.jq *.json /
|
COPY *.sh *.jq *.json /
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
nimbus=/usr/bin/nimbus
|
nimbus=/usr/bin/nimbus
|
||||||
FLAGS="--prune:archive --nat:0.0.0.0"
|
FLAGS="--prune-mode:archive --nat:extip:0.0.0.0"
|
||||||
|
|
||||||
if [ "$HIVE_LOGLEVEL" != "" ]; then
|
if [ "$HIVE_LOGLEVEL" != "" ]; then
|
||||||
FLAGS="$FLAGS --log-level:DEBUG"
|
FLAGS="$FLAGS --log-level:DEBUG"
|
||||||
@ -57,11 +57,11 @@ fi
|
|||||||
|
|
||||||
# It doesn't make sense to dial out, use only a pre-set bootnode.
|
# It doesn't make sense to dial out, use only a pre-set bootnode.
|
||||||
if [ "$HIVE_BOOTNODE" != "" ]; then
|
if [ "$HIVE_BOOTNODE" != "" ]; then
|
||||||
FLAGS="$FLAGS --bootnodes:$HIVE_BOOTNODE"
|
FLAGS="$FLAGS --bootstrap-node:$HIVE_BOOTNODE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$HIVE_NETWORK_ID" != "" ]; then
|
if [ "$HIVE_NETWORK_ID" != "" ]; then
|
||||||
FLAGS="$FLAGS --networkid:$HIVE_NETWORK_ID"
|
FLAGS="$FLAGS --network:$HIVE_NETWORK_ID"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$HIVE_CLIQUE_PRIVATEKEY" != "" ]; then
|
if [ "$HIVE_CLIQUE_PRIVATEKEY" != "" ]; then
|
||||||
@ -77,7 +77,7 @@ fi
|
|||||||
# Configure the genesis chain and use it as start block and dump it to stdout
|
# Configure the genesis chain and use it as start block and dump it to stdout
|
||||||
echo "Supplied genesis state:"
|
echo "Supplied genesis state:"
|
||||||
jq -f /mapper.jq /genesis.json | tee /genesis-start.json
|
jq -f /mapper.jq /genesis.json | tee /genesis-start.json
|
||||||
FLAGS="$FLAGS --customnetwork:/genesis-start.json"
|
FLAGS="$FLAGS --custom-network:/genesis-start.json"
|
||||||
|
|
||||||
# Don't immediately abort, some imports are meant to fail
|
# Don't immediately abort, some imports are meant to fail
|
||||||
set +e
|
set +e
|
||||||
@ -85,7 +85,9 @@ set +e
|
|||||||
# Load the test chain if present
|
# Load the test chain if present
|
||||||
echo "Loading initial blockchain..."
|
echo "Loading initial blockchain..."
|
||||||
if [ -f /chain.rlp ]; then
|
if [ -f /chain.rlp ]; then
|
||||||
$nimbus $FLAGS --import:/chain.rlp
|
CMD="import /chain.rlp"
|
||||||
|
echo "Running nimbus: $nimbus $CMD $FLAGS"
|
||||||
|
$nimbus $CMD $FLAGS
|
||||||
else
|
else
|
||||||
echo "Warning: chain.rlp not found."
|
echo "Warning: chain.rlp not found."
|
||||||
fi
|
fi
|
||||||
@ -93,7 +95,7 @@ fi
|
|||||||
# Load the remainder of the test chain
|
# Load the remainder of the test chain
|
||||||
echo "Loading remaining individual blocks..."
|
echo "Loading remaining individual blocks..."
|
||||||
if [ -d /blocks ]; then
|
if [ -d /blocks ]; then
|
||||||
(cd /blocks && cat `ls | sort -n` > blocks.rlp && $nimbus $FLAGS --import:blocks.rlp)
|
(cd /blocks && cat `ls | sort -n` > blocks.rlp && $nimbus import blocks.rlp $FLAGS)
|
||||||
else
|
else
|
||||||
echo "Warning: blocks folder not found."
|
echo "Warning: blocks folder not found."
|
||||||
fi
|
fi
|
||||||
@ -102,10 +104,10 @@ set -e
|
|||||||
|
|
||||||
# Configure RPC.
|
# Configure RPC.
|
||||||
if [ "$HIVE_GRAPHQL_ENABLED" != "" ]; then
|
if [ "$HIVE_GRAPHQL_ENABLED" != "" ]; then
|
||||||
FLAGS="$FLAGS --graphql --graphqlbind:0.0.0.0:8545"
|
FLAGS="$FLAGS --graphql --graphql-address:0.0.0.0 --graphql-port:8545"
|
||||||
else
|
else
|
||||||
FLAGS="$FLAGS --rpc --rpcapi:eth,debug --rpcbind:0.0.0.0:8545"
|
FLAGS="$FLAGS --rpc --rpc-api:eth,debug --rpc-address:0.0.0.0 --rpc-port:8545"
|
||||||
FLAGS="$FLAGS --ws --wsapi:eth,debug --wsbind:0.0.0.0:8546"
|
FLAGS="$FLAGS --ws --ws-api:eth,debug --ws-address:0.0.0.0 --ws-port:8546"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Running nimbus with flags $FLAGS"
|
echo "Running nimbus with flags $FLAGS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user