Fixed sqlite3 replaceable bool and rawtx with LF in DB

This commit is contained in:
kexkey
2020-08-21 11:05:12 -04:00
parent b24c2bd36e
commit 86095a765d
5 changed files with 26 additions and 26 deletions

View File

@@ -68,7 +68,7 @@ compute_vin_total_amount()
vin_raw_tx=$(sql "SELECT raw_tx FROM tx WHERE txid=\"${vin_txid}\"")
if [ -z "${vin_raw_tx}" ]; then
txid_already_inserted=false
vin_raw_tx=$(get_rawtransaction "${vin_txid}")
vin_raw_tx=$(get_rawtransaction "${vin_txid}" | tr -d '\n')
returncode=$?
if [ "${returncode}" -ne 0 ]; then
return ${returncode}