Add ./run-medalla-beacon-node script

This commit is contained in:
Zahary Karadjov 2020-11-07 00:11:16 +02:00 committed by zah
parent 4a710252d8
commit ac1072b4bb
5 changed files with 13 additions and 37 deletions

View File

@ -33,7 +33,7 @@ endif
# unconditionally built by the default Make target # unconditionally built by the default Make target
# TODO re-enable ncli_query if/when it works again # TODO re-enable ncli_query if/when it works again
TOOLS := \ TOOLS := \
medalla_beacon_node \ beacon_node_spec_0_12_3 \
beacon_node \ beacon_node \
block_sim \ block_sim \
deposit_contract \ deposit_contract \
@ -283,27 +283,27 @@ endef
### medalla ### medalla
### ###
# https://www.gnu.org/software/make/manual/html_node/Call-Function.html#Call-Function # https://www.gnu.org/software/make/manual/html_node/Call-Function.html#Call-Function
medalla: | medalla_beacon_node signing_process medalla: | beacon_node_0_12_3 signing_process
$(call CONNECT_TO_NETWORK,medalla,medalla_beacon_node) $(call CONNECT_TO_NETWORK,medalla,beacon_node_spec_0_12_3)
medalla-vc: | medalla_beacon_node signing_process validator_client medalla-vc: | beacon_node_spec_0_12_3 signing_process validator_client
$(call CONNECT_TO_NETWORK_WITH_VALIDATOR_CLIENT,medalla,medalla_beacon_node) $(call CONNECT_TO_NETWORK_WITH_VALIDATOR_CLIENT,medalla,beacon_node_spec_0_12_3)
medalla-fast-sync: | medalla_beacon_node signing_process medalla-fast-sync: | beacon_node_spec_0_12_3 signing_process
$(call CONNECT_TO_NETWORK,medalla,medalla_beacon_node,FastSync) $(call CONNECT_TO_NETWORK,medalla,beacon_node_spec_0_12_3,FastSync)
ifneq ($(LOG_LEVEL), TRACE) ifneq ($(LOG_LEVEL), TRACE)
medalla-dev: medalla-dev:
+ "$(MAKE)" LOG_LEVEL=TRACE $@ + "$(MAKE)" LOG_LEVEL=TRACE $@
else else
medalla-dev: | medalla_beacon_node signing_process medalla-dev: | beacon_node_spec_0_12_3 signing_process
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,medalla,medalla_beacon_node) $(call CONNECT_TO_NETWORK_IN_DEV_MODE,medalla,beacon_node_spec_0_12_3)
endif endif
medalla-deposit-data: | medalla_beacon_node signing_process deposit_contract medalla-deposit-data: | beacon_node_spec_0_12_3 signing_process deposit_contract
$(call MAKE_DEPOSIT_DATA,medalla) $(call MAKE_DEPOSIT_DATA,medalla)
medalla-deposit: | medalla_beacon_node signing_process deposit_contract medalla-deposit: | beacon_node_spec_0_12_3 signing_process deposit_contract
$(call MAKE_DEPOSIT,medalla) $(call MAKE_DEPOSIT,medalla)
clean-medalla: clean-medalla:

View File

@ -4,7 +4,7 @@ set -e
cd /home/user/nimbus-eth2 cd /home/user/nimbus-eth2
BINARIES="beacon_node medalla_beacon_node" BINARIES="beacon_node beacon_node_spec_0_12_3"
# we need to build everything against libraries available inside this container, including the Nim compiler # we need to build everything against libraries available inside this container, including the Nim compiler
make clean make clean

View File

@ -1,28 +1,4 @@
#!/bin/bash #!/bin/bash
set -e scripts/run-beacon-node.sh beacon_node mainnet
cd "$(dirname $0)"
if [[ "$WEB3_URL" == "" ]]; then
cat <<WEB3_HELP
To monitor the Eth1 validator deposit contract, you'll need to pair
the Nimbus beacon node with a Web3 provider capable of serving Eth1
event logs. This could be a locally running Eth1 client such as Geth
or a cloud service such as Infura. For more information please see
our setup guides:
https://status-im.github.io/nimbus-eth2/infura-guide.html
WEB3_HELP
echo -n "Please enter a Web3 provider URL: "
read WEB3_URL
fi
build/beacon_node \
--data-dir=build/data/mainnet \
--web3-url="${WEB3_URL}" \
$@