Allow the user to use 'goerli' instead of 'prater' (#3874)

This commit is contained in:
zah 2022-07-14 23:07:16 +03:00 committed by GitHub
parent 2bd5d03743
commit a517e8718c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 1 deletions

View File

@ -428,6 +428,37 @@ prater-dev-deposit: | prater-build deposit_contract
clean-prater:
$(call CLEAN_NETWORK,prater)
###
### Goerli
###
goerli-build: | nimbus_beacon_node nimbus_signing_node
# https://www.gnu.org/software/make/manual/html_node/Call-Function.html#Call-Function
goerli: | goerli-build
$(call CONNECT_TO_NETWORK,goerli,nimbus_beacon_node,$(GOERLI_WEB3_URL))
goerli-vc: | goerli-build nimbus_validator_client
$(call CONNECT_TO_NETWORK_WITH_VALIDATOR_CLIENT,goerli,nimbus_beacon_node,$(GOERLI_WEB3_URL))
goerli-lc: | nimbus_light_client
$(call CONNECT_TO_NETWORK_WITH_LIGHT_CLIENT,goerli)
ifneq ($(LOG_LEVEL), TRACE)
goerli-dev:
+ "$(MAKE)" LOG_LEVEL=TRACE $@
else
goerli-dev: | goerli-build
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,goerli,nimbus_beacon_node,$(GOERLI_WEB3_URL))
endif
goerli-dev-deposit: | goerli-build deposit_contract
$(call MAKE_DEPOSIT,goerli,$(GOERLI_WEB3_URL))
clean-goerli:
$(call CLEAN_NETWORK,goerli)
###
### Ropsten
###

View File

@ -294,7 +294,7 @@ when not defined(gnosisChainBinary):
case toLowerAscii(networkName)
of "mainnet":
mainnetMetadata
of "prater":
of "prater", "goerli":
praterMetadata
of "ropsten":
ropstenMetadata

13
run-goerli-beacon-node.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Copyright (c) 2020-2021 Status Research & Development GmbH. Licensed under
# either of:
# - Apache License, version 2.0
# - MIT license
# at your option. This file may not be copied, modified, or distributed except
# according to those terms.
cd "$(dirname $0)"
# Allow the binary to receive signals directly.
exec scripts/run-beacon-node.sh nimbus_beacon_node goerli "$@"