From cf60ec0fd3f09762c940765c07265f928294b465 Mon Sep 17 00:00:00 2001 From: Takeshi Yonezu Date: Sat, 12 Jun 2021 23:19:18 +0900 Subject: [PATCH] feat(iroha-testnet): Add REJECT check for transactions to setup-iroha-wallet.sh script in iroha-testnet Signed-off-by: Takeshi Yonezu --- .../iroha-testnet/example/iroha-wallet/setup-iroha-wallet.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/docker/iroha-testnet/example/iroha-wallet/setup-iroha-wallet.sh b/tools/docker/iroha-testnet/example/iroha-wallet/setup-iroha-wallet.sh index 6fd84b4fcb..ab1271eb34 100644 --- a/tools/docker/iroha-testnet/example/iroha-wallet/setup-iroha-wallet.sh +++ b/tools/docker/iroha-testnet/example/iroha-wallet/setup-iroha-wallet.sh @@ -32,6 +32,10 @@ EOF echo cat /tmp/st | grep "error" | sed 's/^>.*: //' break + elif cat /tmp/st | grep -q "rejected"; then + echo + cat /tmp/st | grep "rejected" | sed 's/^>.*: //' + break fi sleep 1 echo -n "."