From 2e222aa160d8c2fc4ccca41f70ebfacf279824db Mon Sep 17 00:00:00 2001 From: PsySc0rpi0n Date: Sun, 13 Oct 2019 15:11:05 +0100 Subject: [PATCH] First version v0.1 available --- TugaRevoBTC.sh => TugaRevoBTC_v0.1.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) rename TugaRevoBTC.sh => TugaRevoBTC_v0.1.sh (95%) diff --git a/TugaRevoBTC.sh b/TugaRevoBTC_v0.1.sh similarity index 95% rename from TugaRevoBTC.sh rename to TugaRevoBTC_v0.1.sh index 213f1a0..5a1a243 100755 --- a/TugaRevoBTC.sh +++ b/TugaRevoBTC_v0.1.sh @@ -146,9 +146,9 @@ check_balance(){ echo Checking Full Node data... echo Current wallet has: if [[ $used_net == "testnet" ]]; then - bitcoin-cli -testnet getbalance + bitcoin-cli -testnet getbalance "*" 1 true else - bitcoin-cli getbalance + bitcoin-cli getbalance "*" 1 true fi } @@ -209,9 +209,13 @@ check_txid(){ strlen=${#txid} while [[ -z $txid || $strlen -ne $txidlen ]] do - echo "TxID not valid. Please enter a valid one: " + echo "TxID not valid. Please enter a valid one or to cancel: " read -p '> ' txid strlen=${#txid} + if [[ -z $txid ]]; then + echo "Cancelled" + return 1 + fi done if [[ $used_net == "testnet" ]]; then bitcoin-cli -testnet gettransaction $txid