Merge branch 'stable' into unstable

This commit is contained in:
Zahary Karadjov 2021-03-15 21:52:12 +02:00
commit c519c6012e
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
4 changed files with 49 additions and 2 deletions

View File

@ -426,7 +426,7 @@ define CLEAN_NETWORK
endef
###
### pyrmont
### Pyrmont
###
pyrmont-build: | nimbus_beacon_node nimbus_signing_process
@ -451,6 +451,37 @@ pyrmont-dev-deposit: | pyrmont-build deposit_contract
clean-pyrmont:
$(call CLEAN_NETWORK,pyrmont)
###
### Prater
###
prater-build: | nimbus_beacon_node nimbus_signing_process
# https://www.gnu.org/software/make/manual/html_node/Call-Function.html#Call-Function
prater: | prater-build
$(call CONNECT_TO_NETWORK,prater,nimbus_beacon_node)
prater-vc: | prater-build nimbus_validator_client
$(call CONNECT_TO_NETWORK_WITH_VALIDATOR_CLIENT,prater,nimbus_beacon_node)
ifneq ($(LOG_LEVEL), TRACE)
prater-dev:
+ "$(MAKE)" LOG_LEVEL=TRACE $@
else
prater-dev: | prater-build
$(call CONNECT_TO_NETWORK_IN_DEV_MODE,prater,nimbus_beacon_node)
endif
prater-dev-deposit: | prater-build deposit_contract
$(call MAKE_DEPOSIT,prater)
clean-prater:
$(call CLEAN_NETWORK,prater)
###
### Other
###
ctail: | build deps
mkdir -p vendor/.nimble/bin/
+ $(ENV_SCRIPT) nim -d:danger -o:vendor/.nimble/bin/ctail c vendor/nim-chronicles-tail/ctail.nim

View File

@ -194,6 +194,7 @@ template eth2testnet(path: string): Eth2NetworkMetadata =
const
pyrmontMetadata* = eth2testnet "shared/pyrmont"
praterMetadata* = eth2testnet "shared/prater"
{.pop.} # the following pocedures raise more than just `Defect`
@ -204,6 +205,8 @@ proc getMetadataForNetwork*(networkName: string): Eth2NetworkMetadata =
mainnetMetadata
of "pyrmont":
pyrmontMetadata
of "prater":
praterMetadata
else:
if fileExists(networkName):
try:

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

@ -0,0 +1,13 @@
#!/bin/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 prater $@

@ -1 +1 @@
Subproject commit 3b441ff70700a85840ce082a3a5af373946348ab
Subproject commit 192c1b48ea5ff4adb4e6ef7d2a9e5f82fb5ffd72