Skip to content

Commit

Permalink
Geth fresh sync uses PBSS
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Aug 3, 2023
1 parent 51d997c commit 1513508
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions geth/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ else
fi

# Detect existing DB; use PBSS if fresh
#if [ -d "/var/lib/goethereum/geth/chaindata/" ]; then
# __pbbsme=""
#else
# echo "Choosing PBSS for fresh sync"
# __pbbsme="--trie.path-based"
#fi
if [ -d "/var/lib/goethereum/geth/chaindata/" ]; then
__pbss=""
else
echo "Choosing PBSS for fresh sync"
__pbss="--state.scheme path"
fi

if [ -f /var/lib/goethereum/prune-marker ]; then
rm -f /var/lib/goethereum/prune-marker
Expand All @@ -76,5 +76,5 @@ if [ -f /var/lib/goethereum/prune-marker ]; then
else
# Word splitting is desired for the command line parameters
# shellcheck disable=SC2086
exec "$@" ${__prune} ${__verbosity} ${EL_EXTRAS}
exec "$@" ${__pbss} ${__prune} ${__verbosity} ${EL_EXTRAS}
fi

0 comments on commit 1513508

Please sign in to comment.