From 770fe3fd13b4fa6c55e5de97c6acc31d2529d3ba Mon Sep 17 00:00:00 2001 From: kexkey Date: Sat, 29 Sep 2018 11:47:45 -0400 Subject: [PATCH] Fixed spender tx confirmation management --- proxy_docker/app/script/confirmation.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/proxy_docker/app/script/confirmation.sh b/proxy_docker/app/script/confirmation.sh index 076ff7d..1f34753 100644 --- a/proxy_docker/app/script/confirmation.sh +++ b/proxy_docker/app/script/confirmation.sh @@ -25,8 +25,17 @@ confirmation() { trace "Entering confirmation()..." + local returncode local txid=${1} - local tx_details=$(get_transaction ${txid}) + local tx_details + tx_details=$(get_transaction ${txid}) + returncode=$? + trace_rc ${returncode} + trace "[confirmation] tx_details=${tx_details}" + if [ "${returncode}" -ne "0" ]; then + trace "[confirmation] Transaction not in watcher, exiting." + return 0 + fi ######################################################################################################## # First of all, let's make sure we're working on watched addresses...