Hive-Nectar v0.0.9: A More Robust Node Handler
hive-186392·@thecrazygm·
58.619 HBDHive-Nectar v0.0.9: A More Robust Node Handler
Hey everyone, EDIT: Version is now **0.0.10**. Emergency hotfix for broken permlinks. Today, I'm happy to announce a new release for **`hive-nectar`**, which is now at version **0.0.9**. This update focuses on improving the reliability and intelligence of how the library handles Hive nodes. Plus, I took the opportunity to clean up a lot of minor linting errors that were annoying me. A clean codebase is a happy codebase!  The core of this update is a significant refactor of the `update_nodes` function within the `NodeList` class. This is the part of the library responsible for finding and maintaining a list of healthy, fast nodes to connect to. --- #### What's New in Node Handling? Previously, the logic for updating the node list was a bit scattered. Now, it's much smarter and more authoritative. - **A Single Source of Truth:** The `update_nodes` function now gets its authoritative list of nodes and performance data directly from the `json_metadata` of the `@nectarflower` account. This ensures it's always working with the most current and accurate report. - **Smarter Scoring:** Instead of calculating scores locally, the function now directly uses the `weighted_score` provided in the report for ranking nodes. Any nodes not in the report have their scores zeroed out, so they don't interfere with the official ranking. - **Dynamic Node Discovery:** The library now dynamically adds new nodes it finds in the report, even if they weren't in the original hard-coded list. This includes nodes that are known to be failing, which are correctly added with a score of -1 to avoid being used. This ensures the node list is always complete and up-to-date. - **Cleaner Code:** A lot of unused fallback paths and redundant code were removed to make the logic leaner and easier to maintain. These changes mean that any application using `hive-nectar` will be much more resilient and intelligent when connecting to the Hive blockchain. It will automatically favor the best-performing nodes and avoid ones that are down or struggling, leading to a faster and more reliable experience for the end-user. This is an important step forward for the library, and I'm excited to get these improvements out there. EDIT: <https://github.com/TheCrazyGM/hive-nectar> As always, Michael Garcia a.k.a. TheCrazyGM
👍 isnochys, beco132, grand.strategy, minibot, freecompliments, glimpsytips.dex, hdmed, hetty-rowan, magnacarta, wongi, boeltermc, beststart, poplar-22, ngwinndave, liquidocelotytt, georgesantana73, hive-140084, pepetoken, fc-curation, fc-rewards, fc-arbitration, indiasierra, magicalex, indeedly, trovepower, mmbbot, jacor, moretea, morwhale, coolguy123, guurry123, thelogicaldude, gurseerat, imfarhad, captaincryptic, alkirua, trashyomen, vrezyy, tub3r0, noctury, chrisly.social, holdeck2, vrezion, whitneyalexx, tengolotodo.leo, timix648, converter.bonus, bankrobbery, d-a-d, pepe.voter, claudiavb, murtaza-7868, digi-alt, michael561, savvyfrog, morwhaleplus, morwhalebonus, najat, emsenn0, franco10, manclar, svanbo, esmeesmith, fonestreet, casimodo, mk992039, partytime.inleo, lisamgentile1961, ijebest, calebmarvel24, steembasicincome, sbi2, sbi3, anikys3reasure, awesomegames007, tdas0, piestrikesback, buildingpies, sbi-tokens, bilpcoin.pay, qwertm, briefmarken, sbi4, shauner, sbi5, noloafing, sneakyninja, netzisde, bububoomt, sbi6, thedailysneak, babysavage, ravensavage, sbi-booster, sbi7, nicole.lolytte, sbi8, sports.power.bot, sbi9, sbi10, keithtaylor, hive-lu, gamer00, neoxvoter, pixelfan, chaosmagic23, chaos23, kiemis, youloseagain, mviews, hivelist, learn2code, ganjafarmer, kind.network, penguinpablo, cryptonized, elderson, martial.media, woodathegsd, caelum1infernum, ganjafrmer, funnyman, alphacore, hungrybear, jacuzzi, calmphoenix, rudy-dj, kasih-sayang, rulivyxo, hive.friends, ecencypoints, tejidorosa, aafeng, anderssinho, alonicus, usainvote, ecoinstats, accelerator, treasure.hoard, ryosai, thecrazygm.bank, bengy, aakom, a-bot, blessskateshop, archon-gov, irisworld, abrockman, monsterrerentals, everythingsmgirl, voxmortis, yuli05, cubapl, ecoinstant, smartvote, eturnerx, votehero, we-are-lucky, fatman, cryptoknight12, jozefkrichards, kernelillo, pokerarema, onewolfe, hivedrip, eturnerx-dbuzz, msp-makeaminnow, voter001, dpend.active, sketching, mxm0unite, thorlock, mighty-thor, splinterwhale, dstampede, omra-sky, cryptoniusrex, shanibeer, artlover, jim888, v-36, dune69, followjohngalt, tiffin, mcsherriff, magic.byte, appreciator, flemingfarm, detlev, bluemist, sunsea, kkarenmp, danielcarrerag, gaeljosser, bertrayo, ravenmus1c, inciter, sadbear, bdvoter, alenox, soyunasantacruz, andrewmusic, lucianav, gabilan55, noalys, cielitorojo, elgatoshawua, hexagono6, power-kappe, fotomaglys, seryi13, aprasad2325, malhy, liveofdalla, pinkchic, egbre, les90, bipolar95, anhdaden146, noelyss, david.dicotomia, kattycrochet, jilt, beerlover, wiseagent, pakx, jane1289, deepresearch, davidlionfish, szukamnemo, techguard, mes, kstop1, passion-fruit, fortune-master, floatinglin, beaker007, valerianis, gadrian, likedeeler, imbartley, louis88, rockface, iovoccae, steemlandia, shasta, mirroredspork, kachy2022, nicolebanilad, adulruna, deggial, kenny-crane, mytechtrail, lolz.byte, urun, iamchessguy, hive.pizza, funnel, grocko, adamada, nooblogger, hivetrending, goliathus, rondonshneezy, dadspardan, huzzah, cooperclub, creodas, iviaxpow3r, wizzitywillican, thecbp-hiver, john9inch, szmobacsi, banzafahra, h3m4n7, spiritverve, thedoc07, kqaosphreak, swearingradio, cherute, zeclipse, highfist, the-pockets, dalekma, prosocialise, sabajfa, dutchchemist, thoth442, masterfarmer, bhetea01, quan45, life7clothing, joeyarnoldvn, jude.villarta, jazzhero, bestofph, draygyn, iproto, bambukah, andriko, slothlydoesit, slothburn, haejin, alliebee, iambril, ranchorelaxo, purrix, cocinator, tecnotronics, tydynrain, fw206, woelfchen, votebetting, niallon11, crookshanks, nyxlabs, softworld, herman-german, eforucom, dkidfit, carolinawnn, jahanvirawat, jdike,