by Teor
Just lately, we added terminal-based progress bars to Zebra. These experimental progress bars present Zebra’s standing, together with friends, blocks, and transactions.
To show these progress bars, Zebra makes use of how-u-doin, a just lately printed Rust crate for progress bar coordination. how-u-doin makes use of the indicatif terminal show library to truly create the progress bars. We additionally began monitoring some new metrics in Zebra, just like the final chain fork peak.
Absolutely Synced View
When Zebra has synced to the tip, the progress bars present:
- what number of friends Zebra is related to
- how far its has synced the chain
- the current chain forks it’s monitoring
- what number of transactions are within the mempool
That is an alternative choice to Zebra’s logs, which present the chain sync progress each minute and log mempool transactions as they arrive.
Preliminary Sync View
When Zebra is doing its preliminary sync, it exhibits the variety of queued and verified checkpoint blocks. It doesn’t present the mempool as a result of it doesn’t activate till it reaches the chain tip.
Strive it out for your self
If you wish to strive Zebra’s progress bars for your self, compile a current checkout of the Zebra git repository with the progress-bar characteristic:
git clone https://github.com/ZcashFoundation/zebra.git
cd zebra
git checkout fundamental
cargo run --features progress-bar --bin zebrad
It will robotically redirect Zebra’s logs to the normal log file path.
You’ll must set up Zebra’s dependencies and construct Zebra your self as a result of this characteristic hasn’t made it right into a launch but. Till we’re pleased with the characteristic, will probably be off by default in launch builds.
Consumer suggestions
These progress bars are simply an experiment for now. If they’re fashionable with customers, we are able to make them the default Zebra interface. They’ll appear like zcashd’s sync progress bar, however with a bit extra element.
We’d additionally like to enhance the show by:
- solely displaying instances and byte charges for verified checkpoints and blocks
- eradicating much less helpful progress bars, or placing them behind an “professional person” config
You probably have some other ideas, tell us on our Discord, or on the Zcash Group Boards.
The put up Experimental Zebra progress bars appeared first on Zcash Basis.
[ad_2]