From 3b74e9883ee8a9f805647950da209413897a09b6 Mon Sep 17 00:00:00 2001 From: Zoraiz Mahmood <35128199+rzmahmood@users.noreply.github.com> Date: Wed, 25 Dec 2024 13:55:22 +1100 Subject: [PATCH] serve rpc --- .gitignore | 33 ++++++++++++++++++++++++++++++++- node.sh | 23 ++++++++++++++--------- 2 files changed, 46 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 82c635e..fb136e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,34 @@ +# Ignore config directory created as part of node.sh config + +# Ignore .pem file for AWS +*.pem + +# Ignore Terraform state files +*.tfstate +*.tfstate.* + +# Ignore Terraform crash logs +crash.log + +# Ignore Terraform variable files +*.tfvars +*.tfvars.json + +# Ignore Terraform plan files +*.tfplan + +# Ignore the .terraform directory +.terraform/ +.terraform.lock.hcl + +# Ignore backup files created by Terraform +*.backup + +# Ignore sensitive JSON files +override.tf.json +*_override.tf.json + +# Ignore logs and temporary files *.log -snapshots \ No newline at end of file +*.tmp diff --git a/node.sh b/node.sh index 2e2207a..ea6d43e 100755 --- a/node.sh +++ b/node.sh @@ -140,15 +140,20 @@ el_bootnodes=$(cat networks/$EL_CHAIN_ID/el-bootnodes.txt | grep '^enode://' | t # Start geth execution client for this node $GETH_BINARY \ - --networkid=$EL_CHAIN_ID \ - --authrpc.vhosts="*" \ - --authrpc.addr=127.0.0.1 \ - --authrpc.jwtsecret=$JWT_PATH \ - --datadir=$EL_CONFIG_DIR \ - --bootnodes=$el_bootnodes \ - --identity=$MONIKER_NAME \ - --syncmode=snap \ - --verbosity=3 > "geth.log" 2>&1 & + --networkid=$EL_CHAIN_ID \ + --authrpc.vhosts="*" \ + --authrpc.addr=127.0.0.1 \ + --authrpc.jwtsecret=$JWT_PATH \ + --datadir=$EL_CONFIG_DIR \ + --bootnodes=$el_bootnodes \ + --identity=$MONIKER_NAME \ + --syncmode=snap \ + --verbosity=3 \ + --http \ + --http.addr=0.0.0.0 \ + --http.port=8545 \ + --http.api="eth,net,web3,debug" \ + --http.corsdomain="*" > "geth.log" 2>&1 & echo "Sleeping for 10s" sleep 10