Experimental Zebra progress bars

on

|

views

and

comments


/*! elementor – v3.12.2 – 23-04-2023 */ .elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]>a{colour:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}

by Teor

/*! elementor – v3.12.2 – 23-04-2023 */ .elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;colour:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{colour:#69727d;border:3px strong;background-color:clear}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;peak:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:middle;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{show:inline-block}

Not too long ago, 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 lately revealed Rust crate for progress bar coordination. how-u-doin makes use of the indicatif terminal show library to really create the progress bars. We additionally began monitoring some new metrics in Zebra, just like the final chain fork peak.

Totally 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 latest chain forks it’s monitoring
  • what number of transactions are within the mempool
/*! elementor – v3.12.2 – 23-04-2023 */ .elementor-widget-image{text-align:middle}.elementor-widget-image a{show:inline-block}.elementor-widget-image a img[src$=”.svg”]{width:48px}.elementor-widget-image img{vertical-align:center;show:inline-block} Progress bars in a fully-synced Zebra node

That is a substitute for 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 reveals 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.

Progress bars during the initial sync of a Zebra node

Strive it out for your self

If you wish to strive Zebra’s progress bars for your self, compile a latest checkout of the Zebra git repository with the progress-bar function:

git clone https://github.com/ZcashFoundation/zebra.git
cd zebra
git checkout fundamental
cargo run --features progress-bar --bin zebrad

This may mechanically redirect Zebra’s logs to the commonplace log file path.

You’ll have to set up Zebra’s dependencies and construct Zebra your self as a result of this function hasn’t made it right into a launch but. Till we’re proud of the function, it will likely be off by default in launch builds.

Person suggestions

These progress bars are simply an experiment for now. If they’re widespread with customers, we will make them the default Zebra interface. They’ll appear to be zcashd’s sync progress bar, however with a bit extra element.

We’d additionally like to enhance the show by:

  • solely exhibiting instances and byte charges for verified checkpoints and blocks
  • eradicating much less helpful progress bars, or placing them behind an “knowledgeable consumer” config

 

If in case you have some other recommendations, tell us on our Discord, or on the Zcash Neighborhood Boards.

The publish Experimental Zebra progress bars appeared first on Zcash Basis.


Share this
Tags

Must-read

US regulators open inquiry into Waymo self-driving automobile that struck youngster in California | Expertise

The US’s federal transportation regulator stated Thursday it had opened an investigation after a Waymo self-driving car struck a toddler close to an...

US robotaxis bear coaching for London’s quirks earlier than deliberate rollout this yr | London

American robotaxis as a consequence of be unleashed on London’s streets earlier than the tip of the yr have been quietly present process...

Nvidia CEO reveals new ‘reasoning’ AI tech for self-driving vehicles | Nvidia

The billionaire boss of the chipmaker Nvidia, Jensen Huang, has unveiled new AI know-how that he says will assist self-driving vehicles assume like...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here