We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4abb7 commit 4743d8cCopy full SHA for 4743d8c
1 file changed
init-geth.sh
@@ -61,6 +61,12 @@ fi
61
# Set default RPC gas cap if not provided
62
RPC_GAS_CAP=${RPC_GAS_CAP:-500000000}
63
64
+# Set default cache size if not provided
65
+CACHE_SIZE=${CACHE_SIZE:-25000}
66
+
67
+# Set default auth RPC port if not provided
68
+AUTH_RPC_PORT=${AUTH_RPC_PORT:-8551}
69
70
# Build override flags
71
OVERRIDE_FLAGS=""
72
if [ ! -z "$BLUEBIRD_TIMESTAMP" ]; then
@@ -78,10 +84,10 @@ exec geth \
78
84
--http.corsdomain="*" \
79
85
--authrpc.addr "0.0.0.0" \
80
86
--authrpc.vhosts="*" \
81
- --authrpc.port 8551 \
87
+ --authrpc.port $AUTH_RPC_PORT \
82
88
--authrpc.jwtsecret /tmp/jwtsecret \
83
89
--nodiscover \
- --cache 25000 \
90
+ --cache $CACHE_SIZE \
91
--cache.preimages \
92
--maxpeers 0 \
93
--rpc.gascap $RPC_GAS_CAP \
0 commit comments