Skip to content

Commit

Permalink
serve rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
rzmahmood committed Dec 25, 2024
1 parent 1aa66e9 commit 3b74e98
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 10 deletions.
33 changes: 32 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -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
*.tmp
23 changes: 14 additions & 9 deletions node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b74e98

Please sign in to comment.