Hive Engine Witness Voting Tools

Words
491
Reading
3 min
Listen
Play
6y

Just yesterday hive engine witnesses came live and started verifying blocks. I put out a post two days ago with a guide on how someone could become a witness @rishi556/how-to-set-up-a-hive-engine-witness-step-by-step-guide, of which multiple people have followed it and found success so far.

A few days before that I started working on making my own voting tool for engine witnesses. While Tribaldex does have one, I wanted one that I could control and release features that I like. Based off work form eonwarped@eonwarped(I added him as a beneficiary to this post as a thank you) and with styling help from cadawg@cadawg and sn0n@sn0n(them too) this thing has become a reality.

You can access it over at https://cdn.rishipanthee.com/enginewit.html.

I tried to make it as easy to use as possible. Just type in your username and press approve or disapprove on the witness you want to vote for or remove your vote for. The data on who you are voting for automatically refreshes once you type in your username. Using the vote button will use hive keychain if it exists or redirect you to vote with hive signer if it doesn't exist.

With the help of Cad I was also able to add in some cool features like highlighting certain witnesses. By default my witness and cad's are highlighted. If a witness want to share a link with their name highlighted, they can simply add the param highlight=username. For example if apiculture@apiculture the current top witness(run by abrockman@abrockman) wanted his name highlighted, he can just use this url: https://cdn.rishipanthee.com/enginewit.html?highlight=apiculture.

Cad also made the site look as good as it does now, as well as showing the disabled witnesses in red, so that a quick glance is all thats needed for a lot of the info.

One of the most important things that I thought was missing from Tribaldex was seeing who votes for you as a witness. I decided to add that in today. Adding it in was quite simple as there's a query that can be performed to get the voting data. Once I have that, I can simply lookup balance information for each of those users so show their stake that they are voting with.

The result is a table which shows where a witness's votes are coming from. The following voting info is for eturnerx-honey@eturnerx-honey which is eturnerx@eturnerx's engine witness.

Screen Shot 20210204 at 6.10.49 PM.png

Right now its sorted by earliest vote to the latest, but I'd like to add some sorting over the weekend so that the info can be sorted by largest weight to smallest. As you can see, there's some pretty massive voters out there.

While this isn't on git yet, once I clean up the code some more, I plan on putting it up on git.

If there's any other info that you'd like to see on the site, LMK and I'll see about adding it. Hopefully this helps more users vote in witnesses. If you'd like to support my hive engine witness, its h-e@h-e.

Hive Engine Witness Voting Tools | Ecency