Skip to content

Commit

Permalink
Besu rely on defaults for sync mode and rpc API (#1904)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Aug 12, 2024
1 parent ffbe193 commit 7e9e8fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions besu/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ if [[ "${NETWORK}" =~ ^https?:// ]]; then
__network="--genesis-file=/var/lib/besu/testnet/${config_dir}/besu.json --bootnodes=${bootnodes} \
--Xfilter-on-enr-fork-id=true --rpc-http-api=ADMIN,CLIQUE,MINER,ETH,NET,DEBUG,TXPOOL,ENGINE,TRACE,WEB3"
else
__network="--network ${NETWORK} --rpc-http-api WEB3,ETH,NET"
__network="--network ${NETWORK}"
fi

if [ "${ARCHIVE_NODE}" = "true" ]; then
echo "Besu archive node without pruning"
__prune="--data-storage-format=FOREST --sync-mode=FULL"
else
__prune="--data-storage-format=BONSAI --sync-mode=SNAP"
__prune=""
fi

__memtotal=$(awk '/MemTotal/ {printf "%d", int($2/1024/1024)}' /proc/meminfo)
Expand Down

0 comments on commit 7e9e8fa

Please sign in to comment.