From 0c7a2ed2ce1ea590f4bdf3d81c4dff5f5cbf5f99 Mon Sep 17 00:00:00 2001 From: kexkey Date: Tue, 18 Aug 2020 17:25:06 -0400 Subject: [PATCH] Fix for watchtxid webhooks retries --- proxy_docker/app/script/callbacks_txid.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy_docker/app/script/callbacks_txid.sh b/proxy_docker/app/script/callbacks_txid.sh index 4724445..94f6546 100644 --- a/proxy_docker/app/script/callbacks_txid.sh +++ b/proxy_docker/app/script/callbacks_txid.sh @@ -126,11 +126,12 @@ build_callback_txid() { trace "[build_callback_txid] data=${data}" curl_callback_txid "${url}" "${data}" + returncode=$? # Delete the temp file containing the raw tx (see above) rm rawtx-${txid}-$$.blob - return $? + return ${returncode} else trace "[build_callback_txid] Number of confirmations for tx is not enough to call back." return 1