From dfc0474b8f578d71438312e21fd204c012144c9a Mon Sep 17 00:00:00 2001 From: cloud8little <34291844+cloud8little@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:59:28 +0800 Subject: [PATCH] add oracle_env_beaconchain yaml config in local_node (#215) --- local_node.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/local_node.sh b/local_node.sh index c5d458519..037346f73 100755 --- a/local_node.sh +++ b/local_node.sh @@ -33,6 +33,7 @@ GENESIS=$HOMEDIR/config/genesis.json TMP_GENESIS=$HOMEDIR/config/tmp_genesis.json ORACLE_ENV_CHAINLINK=$HOMEDIR/config/oracle_env_chainlink.yaml ORACLE_FEEDER=$HOMEDIR/config/oracle_feeder.yaml +ORACLE_ENV_BEACONCHAIN=$HOMEDIR/config/oracle_env_beaconchain.yaml # validate dependencies are installed command -v jq >/dev/null 2>&1 || { @@ -219,6 +220,17 @@ EOF # Write the YAML content to a file echo "$oracle_feeder_content" >"$ORACLE_FEEDER" + # generate oracle_env_beaconchain.yaml + oracle_env_beaconchain_content=$( + cat <"$ORACLE_ENV_BEACONCHAIN" + if [[ $1 == "pending" ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then sed -i '' 's/timeout_propose = "3s"/timeout_propose = "30s"/g' "$CONFIG"