HIVE Nodes Checker - version 0.0.6

in La Ruche2 years ago

hive_nodes_checker.jpg

HIVE Nodes Checker is a package I released last week that allows you to check the availability and efficiency of HIVE nodes (servers that are used to query the blockchain).

My first observation is that the npm download counter looks as accurate as the Steem view counter was, 117 downloads in the 1st week? If this were true, I would go and play the lottery right away, I'm sure I will win. 🤣

But this is not the topic of the day, after a week I made some minor additions that I will explain here.

HIVE Nodes Checker est un package que j'ai publié le 2 janvier et qui permet de vérifier la dispo et l'efficience des nodes HIVE (serveurs utilisés pour interroger la blockchain).

Ma première remarque est que le compteur de téléchargements npm à l'air aussi fiable que ce qu'était le compteur de vu Steem car 117 téléchargement la 1ère semaine si c'était vrai j'irais tout de suite jouer au Loto. 🤣

Mais revenons au sujet du jour qui est les quelques ajouts mineurs que je vais expliquer ici.

Message subscription

nb_degraded

A new counter nb_degraded is returned in addition to nb_ok and nb_error allowing a better analysis of the efficiency of nodes.

Un nouveau compteurs nb_degraded est renvoyé en plus de nb_ok et nb_error permettant un calcul plus fin de l'efficience.

message.unsubscribe()

Unsubscribe manually from the Observable (RxJS).

Se désabonner manuellement de l'Observable (RxJS).

Usage
/** Unsubscribe results */
nodesChecker.message.unsubscribe()
})

Params

Reset

reset is a new parameter to reset the nb_ok, nb_error, and nb_degraded counters after a specified number of check rounds.

reset qui permet de réinitaliser les compteurs nb_ok, nb_error et nb_degraded après un nombre spécifié de cycle de vérification.

Usage
import { HiveNodesChecker } from '@mintrawa/hive-nodes-checker'

/** HIVE nodes url to check */
const nodes = [
  "https://api.hive.blog",
  ...
]

/** Options */
const options = {
  full: true,
  interval: 3600, // 3600 seconds = 1 hour
  reset: 24 // every 24 tests (1 time per day)
}

/** Init the checker */
const nodesChecker = new HiveNodesChecker(nodes, options)

Functions

restart()

The restart() function restarts the checking process using the same params.

Permet de redémarrer la vérification en utilisant les mêmes params.

Usage
/** Restart the checker */
nodesChecker.restart()

stop()

The stop() function stops the execution of the checking process. Can be started again later with the start() function (use the same params).

Permet de stopper l'execution de la vérification et de la reprendre plus tard avec la fonction start() (utilise les params fournis lors de l'initialisation).

Usage
/** Stop the checker */
nodesChecker.stop()

Github & NPM

https://github.com/Mintrawa/hive-nodes-checker
https://www.npmjs.com/package/@mintrawa/hive-nodes-checker


I don't think I'll make any other changes for the moment and resume my beta tests of Hive Authentication Service with HIVE Keychain Wallet.

Je ne pense pas faire d'autres modifications pour le moment et reprendre mes tests de la beta du Hive Authentication Service avec le HIVE Keychain Wallet.

Desktop

screenshot_2022_01_11_121248.jpg
light theme

screenshot_2022_01_11_121159.jpg
dark theme

screenshot_2022_01_11_121317.jpg
light theme

screenshot_2022_01_11_121354.jpg
dark theme

Smartphone

screenshot_20220111_121452.jpg
light theme

screenshot_20220111_121818.jpg
dark theme

screenshot_20220111_121503.jpg
link usage

screenshot_20220111_121736.jpg
HIVE Keychain Wallet


My HIVE witness servers

PRINCIPAL
BACKUP/SEED
CPU:Intel Xeon E3-1270v6CPU: Intel Xeon E3-1230v6
4 Cores/8 Threads 3.5 GHz/3.9 GHz4 Cores/8 Threads 3.8 GHz/4.2 GHz
RAM: 32GB DDR4 ECC 2133MHzRAM: 32GB DDR4 ECC 2133MHz
HDD: 1 To SSD NVMeHDD: 1 To SSD NVMe


Vote for my HIVE witness: click here (via HiveSigner)

Sort:  


The rewards earned on this comment will go directly to the person sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.

My first observation is that the npm download counter looks as accurate as the Steem view counter was, 117 downloads in the 1st week? If this were true, I would go and play the lottery right away, I'm sure I will win. 🤣

Haven't you fooled the counter by yourself? :D

No, but I got an email this morning about my youtube views purchase, they gave me a gift, 1 npm download for every 100 youtube views bought 🤣 (désolé, je n'ai pas résister)

Aaaargh... :D

Yay! 🤗
Your content has been boosted with Ecency Points, by @mintrawa.
Use Ecency daily to boost your growth on platform!

Support Ecency
Vote for new Proposal
Delegate HP and earn more