Happy #HPUD / Things are probably going to break... nectar v0.2.0 candidate

in Synergy Builders20 hours ago (edited)

Hey everyone,

Happy #HPUD!

As you can see from the screenshot, my contribution this month is a tiny one... only 7.005 HIVE. But if you look closely at the output, you'll notice it looks much, much different than normal.

screenshot-20251201-095106.png

You can see it grabbing the nodelist from the PeakD beacon. You can see the raw HTTP responses (that’s temporary debug output while I verify everything is working). And most importantly, you can see that the transaction went through successfully.

Why This Matters

This transaction was built using a branch of hive-nectar that has been 100% refactored.

I don't mean a quick cleanup. I mean every file, every method, every class, every variable, and every line in the codebase has been rewritten, audited, type checked and optimized where I could find it possible. 90+ commits ahead of main at the time of writing...

Here is a taste of what has changed in v0.2.0:

  • Total Refactor: The entire structure has been audited.
  • No more legacy api: Using the openapi specifications, every rpc call goes where it's supposed to go, no more is_appbase or use_condenser type checking / switching.
  • Async Support: I completely removed the requests library in favor of httpx to support asynchronous operations. (mostly still in progress)
  • No More Hivesigner: The functionality of Hivesigner has been removed entirely.
  • Modern Standards: The entire codebase is now type-hinted and checked with ruff for linting and formatting and ty for type checking (and let me tell you that thing is PICKY).
  • Better Reliability: Added a NodePool for smarter node management and custom exceptions for better error handling.

I Need Testers!

I’ve put this code through the wringer as much as I can, but I can't test every edge case alone. Everything in this update is a breaking change.

If you use hive-nectar for anything mission-critical, I need you to break it for me now, before I merge it into the main branch. Special shout out to @brianoflondon, @themarkymark, @josephsavage (i'll help you test sometime soon) and anyone that relies on hive-nectar.

You can install and play with the refactored version directly from the v0.2.0 branch on GitHub:

pip install -U git+https://github.com/thecrazygm/hive-nectar.git@v0.2.0

# or

uv add "hive-nectar @ git+https://github.com/thecrazygm/[email protected]"

I'll continue tweaking it in this branch, but eventually, it will be merged. I’d much rather fix the issues now than have them surprise you later.

EDIT: https://github.com/TheCrazyGM/hive-nectar/tree/v0.2.0 if you want to poke at it and see what changed.

As always,
Michael Garcia a.k.a. TheCrazyGM

Sort:  

This is awesome

Loading...
Loading...
Loading...
Loading...

Wow! HUGE. I will start folding this into v2 of @v4vapp tomorrow and let you know what breaks, what works!

I still need to share the block streaming solution I have with you and we can see if it can be built into the library.

I've just given it a really quick go and it just seems to work for MOST of what my code does right now (at least what I have covered by automatic tests.)

I recently added some witness checking code and that appears to break and I've put an issue in Github for you to see. I think it's just obscure bits of Beem which can be done another way now.

Fixes should be in now. Let me know if anything else comes up.

Congratulations @thecrazygm! You received a personal badge!

You powered-up at least 50 HP on Hive Power Up Day! This entitles you to a level 2 badge
Participate in the next Power Up Day and try to power-up more HIVE to get a bigger Power-Bee.
May the Hive Power be with you!

You can view your badges on your board and compare yourself to others in the Ranking

Check out our last posts:

Hive Power Up Month Challenge - November 2025 Winners List
Be ready for the December edition of the Hive Power Up Month!
Hive Power Up Day - December 1st 2025

Congratulations @thecrazygm! You received a personal badge!

You powered-up at least 10 HIVE on Hive Power Up Day!
Wait until the end of Power Up Day to find out the size of your Power-Bee.
May the Hive Power be with you!

You can view your badges on your board and compare yourself to others in the Ranking

Check out our last posts:

Hive Power Up Month Challenge - November 2025 Winners List
Be ready for the December edition of the Hive Power Up Month!
Hive Power Up Day - December 1st 2025
Loading...

You're always going above and beyond, my friend! So you originally updated and refactored the Beem libraries to make the first iteration of hive-nectar, and once you fully understood it, you completely rebuilt it from scratch. That's brilliant! I know that @borniet should definitely play around with it! 😁🙏💚✨🤙

Loading...