From 2fe0f004e88224ef873afbcf002d843ec401688d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Tue, 31 Dec 2024 09:51:58 +0100 Subject: [PATCH] tweak: node-dusk --- sources/blockchain/snippets/node-dusk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/blockchain/snippets/node-dusk.sh b/sources/blockchain/snippets/node-dusk.sh index b88f3ca..eed30e6 100644 --- a/sources/blockchain/snippets/node-dusk.sh +++ b/sources/blockchain/snippets/node-dusk.sh @@ -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'