This Python script provides a visual representation of the Bitcoin node synchronization progress. It displays a text-based progress bar in the console, along with the percentage of completion and an estimated time to completion.
- Real-time progress bar
- Percentage of completion
- Estimated Time of Arrival (ETA) for sync completion
- Updates every minute
- Python 3.6 or higher
bitcoin-cliaccessible from the command line- A running Bitcoin node
curl -sSL https://raw.githubusercontent.com/TheCryptoDonkey/bitcoin-sync-progress/main/bitcoin_sync_progress.py | python3
-
Ensure you have Python 3 installed on your system. You can check by running:
python3 --version -
If Python is not installed, you can install it on Raspberry Pi OS Lite with:
sudo apt update sudo apt install python3 -
Clone this repository or download the
bitcoin_sync_progress.pyfile. -
Make the script executable:
chmod +x bitcoin_sync_progress.py
-
Ensure your Bitcoin node is running and fully operational.
-
Run the script:
./bitcoin_sync_progress.pyOr, if you prefer:
python3 bitcoin_sync_progress.py -
The script will display a progress bar and update every minute:
Bitcoin Sync Progress: [|||||||||| ] 20.00% ETA: 2d 5h 30m -
The script will automatically terminate once the sync reaches 99.99% completion.
- The ETA calculation becomes more accurate over time as more data points are collected. It may fluctuate significantly at the beginning of the sync process.
- Ensure that
bitcoin-cliis in your system's PATH or provide the full path tobitcoin-cliin the script.
If you encounter any issues:
- Ensure your Bitcoin node is running and
bitcoin-cliis operational. - Check that you have the necessary permissions to run
bitcoin-cli. - If you get a "command not found" error, ensure
bitcoin-cliis in your system's PATH or update the script with the full path tobitcoin-cli.
Contributions, issues, and feature requests are welcome.