Skip to content

Commit

Permalink
tweak: node-dusk
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Jan 5, 2025
1 parent 0a2c453 commit 338a690
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions sources/blockchain/node-dusk.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ To Action From
:class: toggle
2025-01-05
: Mise à jour de la version du script d’installation de Dusk (`0.5.2` → `0.5.3`) pour le *kick-off* du *mainnet* !
: Ajout des alias [`accepted`](#accepted) et [`generated`](#generated).
: L’alias `blocks` affiche désormais toutes les informations utiles pour connaître les statisriques du nœud.
: Suppression des alias `chosen`, `current` et `latest`.
Expand Down
6 changes: 3 additions & 3 deletions sources/blockchain/snippets/node-dusk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ apt install -y ufw \


apt install -y jq net-tools unzip
curl -sL https://github.com/dusk-network/node-installer/releases/download/v0.5.2/node-installer.sh | bash
curl -sL https://github.com/dusk-network/node-installer/releases/download/v0.5.3/node-installer.sh | bash


rusk-wallet restore
Expand Down Expand Up @@ -110,8 +110,8 @@ function blocks() {
local a="$(accepted | wc -l)"
local g="$(generated | wc -l)"
local r=$(echo "scale=2 ; $a / $g * 100" | bc)
# printf '[%d/%d] %d|%d (%s%%)\n' $l $c $g $a $r
printf '[\e[34m%d\e[0m/\e[31m%d\e[0m] \e[33m%d\e[0m|\e[32m%d\e[0m (\e[39m%s%%\e[0m)\n' $l $c $g $a $r
# printf '[%d/%d] %d|%d (%s%%)\n' $c $l $g $a $r
printf '[\e[34m%d\e[0m/\e[31m%d\e[0m] \e[33m%d\e[0m|\e[32m%d\e[0m (\e[39m%s%%\e[0m)\n' $c $l $g $a $r
}
alias accepted='grep_logs accepted-only'
Expand Down

0 comments on commit 338a690

Please sign in to comment.