Skip to content

Commit cb6e9e3

Browse files
Updated start script to enable the specification of the db cache size for the collator and the relay chain.
1 parent 212435d commit cb6e9e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/start_collator.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ if [[ ! -z ${BLOCKS_PRUNING} ]]; then
5959
collator_args+=(--blocks-pruning ${BLOCKS_PRUNING})
6060
fi
6161

62+
if [[ ! -z ${COLLATOR_DB_CACHE} ]]; then
63+
collator_args+=(--db-cache ${COLLATOR_DB_CACHE})
64+
fi
65+
6266
if [[ ! -z ${LISTEN_ADDR} ]]; then
6367
collator_args+=(--listen-addr ${LISTEN_ADDR})
6468
else
@@ -102,6 +106,10 @@ if [[ ! -z ${RPC_METHODS} ]]; then
102106
relay_args+=(--rpc-methods ${RPC_METHODS})
103107
fi
104108

109+
if [[ ! -z ${RELAY_DB_CACHE} ]]; then
110+
relay_args+=(--db-cache ${RELAY_DB_CACHE})
111+
fi
112+
105113

106114
# collator_args+=($chain_spec)
107115

0 commit comments

Comments
 (0)