Rollback Blocks
This guide describes how to revert the Pharos node to a previous block height.
Step 1: Stop the Node
Docker:
cd /data/$WORKSPACE
docker compose downBinary:
cd /data/$WORKSPACE
./ops stopStep 2: Backup local_storage
mv /data/$WORKSPACE/data/local_storage /data/$WORKSPACE/data/local_storage.bakStep 3: Revert Blocks
Revert to latest stable block:
cd /data/$WORKSPACE/bin
./pharos_cli revert -c ../pharos.conf -t stableRevert to a specific block number:
You will see an interactive confirmation prompt:
Enter y to confirm.
Step 4: Start the Node
Docker:
Binary:
Last updated
Was this helpful?
