diff --git a/dist/setup.sh b/dist/setup.sh index 1f5086d..3f6e9c9 100755 --- a/dist/setup.sh +++ b/dist/setup.sh @@ -478,7 +478,7 @@ install_docker() { next fi - copy_file $current_path/otsclient/bitcoin.conf $OTSCLIENT_DATAPATH/bitcoin.conf 1 $SUDO_REQUIRED + copy_file $cyphernodeconf_filepath/otsclient/bitcoin.conf $OTSCLIENT_DATAPATH/bitcoin.conf 1 $SUDO_REQUIRED fi docker swarm join-token worker > /dev/null 2>&1 diff --git a/otsclient_docker/script/otsclient.sh b/otsclient_docker/script/otsclient.sh index 1e54af9..1d279f7 100644 --- a/otsclient_docker/script/otsclient.sh +++ b/otsclient_docker/script/otsclient.sh @@ -95,7 +95,7 @@ verify() { # Let's create the OTS file locally from the base64 trace "[verify] Creating /otsfiles/otsfile-$$.ots" - echo "${base64otsfile}" > /otsfiles/otsfile-$$.ots + echo "${base64otsfile}" | base64 -d > /otsfiles/otsfile-$$.ots trace "[verify] ots-cli.js verify -d ${hash} /otsfiles/otsfile-$$.ots" result=$(ots-cli.js verify -d ${hash} /otsfiles/otsfile-$$.ots 2>&1) returncode=$? diff --git a/proxy_docker/app/script/ots.sh b/proxy_docker/app/script/ots.sh index d30ca04..c8bd4fd 100644 --- a/proxy_docker/app/script/ots.sh +++ b/proxy_docker/app/script/ots.sh @@ -244,6 +244,7 @@ serve_ots_verify() { local result local returncode + trace "[serve_ots_verify] request_ots_verify \"${hash}\" \"${base64otsfile}\"" result=$(request_ots_verify "${hash}" "${base64otsfile}") returncode=$? trace_rc ${returncode}