😁Geth - Enabling path-based state storage
No more offline pruning, save time and disk space!
🎉 Enjoy performance improvements

🤖 How to enable PBSS for existing installations
# Stop geth
sudo systemctl stop execution
#(add --state.scheme=path to the ExecStart line)
sudo nano /etc/systemd/system/execution.service
# reload changes
sudo systemctl daemon-reload
# Delete the old db
# and when asked, delete the state database, but keep the ancient database
# Yes to state db, no to ancient db.
sudo -u execution /usr/local/bin/geth --datadir /var/lib/geth removedb
# Start geth
sudo systemctl start execution
Example of V2 service file with updated ExecStart line using --state.scheme=path
[Unit]
Description=Geth Execution Layer Client service for Mainnet
Wants=network-online.target
After=network-online.target
Documentation=https://www.coincashew.com
[Service]
Type=simple
User=execution
Group=execution
Restart=on-failure
RestartSec=3
KillSignal=SIGINT
TimeoutStopSec=900
ExecStart=/usr/local/bin/geth \
--mainnet \
--metrics \
--datadir=/var/lib/geth \
--pprof \
--state.scheme=path \
--authrpc.jwtsecret=/secrets/jwtsecret
[Install]
WantedBy=multi-user.target
Last updated