Skip to content

Commit

Permalink
add oracle_env_beaconchain yaml config in local_node (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud8little authored Oct 15, 2024
1 parent 2c732ea commit dfc0474
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions local_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {
Expand Down Expand Up @@ -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 <<EOF
url:
!!str https://ethereum-holesky-rpc.publicnode.com
EOF
)

# Write the YAML content to a file
echo "$oracle_env_beaconchain_content" >"$ORACLE_ENV_BEACONCHAIN"

if [[ $1 == "pending" ]]; then
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' 's/timeout_propose = "3s"/timeout_propose = "30s"/g' "$CONFIG"
Expand Down

0 comments on commit dfc0474

Please sign in to comment.