File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ collator_args=(
3737 --rpc-port 9946
3838 --rpc-external
3939 --rpc-cors all
40- --rpc-methods unsafe
4140 --chain $RESOURCES_PATH /$1 -collator-raw-spec.json
4241)
4342if [[ ! -z ${NODEKEY} ]]; then
@@ -74,7 +73,6 @@ relay_args=(
7473 --rpc-port 9944
7574 --rpc-external
7675 --rpc-cors all
77- --rpc-methods unsafe
7876 --wasm-execution Compiled
7977)
8078
8482 relay_args+=(--pruning 10000)
8583fi
8684
85+ if [[ ! -z ${RPC_MAX_CONNECTIONS} ]]; then
86+ collator_args+=(--rpc-max-connections ${RPC_MAX_CONNECTIONS} )
87+ relay_args+=(--rpc-max-connections ${RPC_MAX_CONNECTIONS} )
88+ fi
89+
90+ if [[ ! -z ${RPC_MAX_REQUEST_SIZE} ]]; then
91+ collator_args+=(--rpc-max-request-size ${RPC_MAX_REQUEST_SIZE} )
92+ relay_args+=(--rpc-max-request-size ${RPC_MAX_REQUEST_SIZE} )
93+ fi
94+
95+ if [[ ! -z ${RPC_MAX_RESPONSE_SIZE} ]]; then
96+ collator_args+=(--rpc-max-response-size ${RPC_MAX_RESPONSE_SIZE} )
97+ relay_args+=(--rpc-max-response-size ${RPC_MAX_RESPONSE_SIZE} )
98+ fi
99+
100+ if [[ ! -z ${RPC_METHODS} ]]; then
101+ collator_args+=(--rpc-methods ${RPC_METHODS} )
102+ relay_args+=(--rpc-methods ${RPC_METHODS} )
103+ fi
104+
105+
87106# collator_args+=($chain_spec)
88107
89108# /target/release/hashed key insert --base-path ./collator-data $chain_spec --scheme sr25519 --suri "${MNEMO}" --key-type aura
You can’t perform that action at this time.
0 commit comments