From 21c54fd1d619b18367034572f0afd27e2fe5e5d5 Mon Sep 17 00:00:00 2001 From: Jerome Date: Fri, 24 Mar 2023 18:47:55 +1100 Subject: [PATCH] Devnet shall not store historical data as it will blow up memory (#239) --- cicd/devnet/start.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cicd/devnet/start.sh b/cicd/devnet/start.sh index 9864f04fb7..3565acf1e6 100755 --- a/cicd/devnet/start.sh +++ b/cicd/devnet/start.sh @@ -52,7 +52,8 @@ netstats="${NODE_NAME}-${wallet}-${INSTANCE_IP}:xinfin_xdpos_hybrid_network_stat echo "Running a node with wallet: ${wallet} at IP: ${INSTANCE_IP}" echo "Starting nodes with $bootnodes ..." -XDC --ethstats ${netstats} --gcmode=archive \ +# Note: --gcmode=archive means node will store all historical data. This will lead to high memory usage. Only needed if you need the node to perform historical operations +XDC --ethstats ${netstats} --gcmode=full \ --nat extip:${INSTANCE_IP} \ --bootnodes ${bootnodes} --syncmode full \ --datadir /work/xdcchain --networkid 551 \