Skip to content

Commit

Permalink
Devnet shall not store historical data as it will blow up memory (eth…
Browse files Browse the repository at this point in the history
  • Loading branch information
wjrjerome authored Mar 24, 2023
1 parent 63a5dc4 commit 21c54fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cicd/devnet/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 21c54fd

Please sign in to comment.