NetworkStatus update : Quality, Hive-Engine History, more tests ....

avatar

Hello World! This post is made to bring you a good news : NetworkStatus received an update, and a good one.

NetworkStatus update

For those who don't know, this project is a small API for developers to check Hive network to get the best node. If all Hive projects use that, no more "Hive-Engine node error" or "Error from Hive node" will happening.

How ? Do a small query on NetworkStatus, and the best online node is returned! Do that just before send Hive-Engine query and you'll never have node errors.

So, what's new in this update ?

Code refactor and code quality

I do a big work to made the code more clean and efficient. The goal is to bring a very easy and fast API to every developer.

For future developments (maybe Open-Source?), every "network" have his file: Hive / Hive-Engine / ... And I do that to make easier maintenance and development for each. Also, every "network" update have his thread so one I cannot have conflicts between them, bringing more stability and viability.

Hive-Engine History

If you don't know, Hive Engine have two types of node: Standard and History nodes. NetworkStatus began with Hive-Engine, but now, you can also have Hive-Engine History nodes check!

At this time, there are only three listed History nodes but NetworkStatus already have a system to add one in the fastest way: I just add one line in a file and that's all.

Hive logo by @doze

HiveSQL

A good thing is to check HiveSQL status before sending the query to avoid bad data sending or bugs. NetworkStatus have now an (cached) endpoint to check that: /hivesql.

This endpoint is refreshed every 5 minutes. Before trying to connect to HiveSQL, just check its state with NetworkStatus, many bugs can be avoided if HiveSQL is down.

Hive-Engine

Hive-Engine endpoints also have new features! Lots of data have been added. To start, I've added 3 new tests :

  • blockchain.getLastBlock
  • blockchain.getBlockInfo
  • blockchain.getTransactionInfo

So now, you can know what works on each Hive-Engine node for blockchain endpoint.

Last but not the least, I add a timer! NetworkStatus now sort every node by process time (before that, it was by ping... it was not serious). When you use the /he/best endpoint, it will show you all the data from the best node only.

Conclusion

NetworkStatus is now a real project to have more stability on Hive-Engine blockchain. But I have many more tests and features to add to this project (Hive node check, other tests functions, ...).

In a near future, I'll implement this in all the HiveLive projects to have a real stability on Hive-Engine. That will show you how important NetworkStatus is.

If you like my work, don't forget to upvote and/or reblog this post. Please consider making a donation if you can.

As usual, if you have some questions, feedback or feature request, fell free to comment. See my others Hive project on HiveLive. You can join the HiveLive Discord server to talk with us too.

Have a great day!


GFX Credits :

  • Hive circuit logo by @doze (Thank you so much for your work!)


0
0
0.000
18 comments
avatar

Thanks for all the work you do to make Hive a better place to be!
!DHEDGE

0
0
0.000
avatar

1


This post has been selected for upvote from our token accounts by @melinda010100! Based on your tags you received upvotes from the following account(s):

- @dhedge.bonus
- @dhedge.bee

@melinda010100 has 12 vote calls left today.

Hold 10 or more DHEDGE to unlock daily dividends and gain access to upvote rounds on your posts from @dhedge. Hold 100 or more DHEDGE to unlock thread votes. Calling in our curation accounts currently has a minimum holding requirement of 100 DHEDGE. The more DHEDGE you hold, the higher upvote you can call in. Buy DHEDGE on Tribaldex or earn some daily by joining one of our many delegation pools at app.dhedge.cc.

0
0
0.000
avatar

!BBH

Curation par La Principauté du Bastion.

PS: Vous aussi pouvez aider cette curation (@hive-143869) en suivant notre trail ou en déléguant,
si vous choisissez la seconde option, vous recevrez des ECU (token stable) chaque semaine.


ItharaGaian
Principauté du Bastion (@hive-143869 Community)
Sélection Manuelle

BlasonPrincipautéBastionTransparentSmall.png

0
0
0.000
avatar

Vraiment intéressant, faut absolument que je trouve le temps de me pencher sur ton taf .

0
0
0.000
avatar

The ping times are kinda useless without knowing where the requests are made from. Most nodes are hosted at Hetzner Germany, so testing from close to that means you'll have quick times to those(I think my node is the only one that I know of that's not hosted by Hetzner actually).

0
0
0.000
avatar

That's why I change to ProcessTime :)
I display the ping but you're right, it's useless.

0
0
0.000
avatar

Nice, still does look like that's affected by location. Any chance you can make the requests happen right from the users's browser so they can figure out what's best for them?

0
0
0.000
avatar

It's the next step : Have more geographical check to have the best node wherever you are.

0
0
0.000
avatar

great work, Florent, you seem to pay a lot of attention to details and simplify things for us here! Keep up the good work, you are an example for us all!

0
0
0.000
avatar

Good Job, anything that improve Hive Engine is a plus for LasseCash :)

0
0
0.000
avatar

"Bravo!" on the completion of yet another useful project for the blockchain!

0
0
0.000
avatar

Big thanks for snagging your Walk Bridges - Build Bridges ticket!

Stay in the loop for all the updates, tips, and announcements under the #buzzparty2024 tag!

0
0
0.000
avatar

Congratulations @bambukah! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 56000 upvotes.
Your next target is to reach 57000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

LEO Power Up Day - November 15, 2023
0
0
0.000