Skip to content

Commit

Permalink
tweak: node-dusk
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Dec 31, 2024
1 parent 1133b0b commit 2fe0f00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/blockchain/snippets/node-dusk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ cat << 'EOF' >> ~/.profile
# Dusk specific commands
alias balance='rusk-wallet balance --spendable'
alias blocks='echo "Current: $(current)" ; echo "Latest : $(latest)"'
alias chosen='i=1; zgrep "Block generated" /var/log/rusk.log* | while read -r line; do printf "%3d %s\\n" $i "$line"; i=$((i+1)); done'
alias chosen='i=1; zgrep "Block generated" /var/log/rusk.log* | while read -r line; do printf "%d: %s\\n" $i "$line"; i=$((i+1)); done'
alias current='curl -s http://127.0.0.1:8080/02/Chain --data-raw '"'"'{"topic":"gql","data":"query{block(height:-1){header{height}}}"}'"'"' | jq .block.header.height'
alias latest='ruskquery block-height'
alias logs='tail -f /var/log/rusk.log'
Expand Down

0 comments on commit 2fe0f00

Please sign in to comment.