diff --git a/src/TxSearch.cpp b/src/TxSearch.cpp index e3f5200..0aeb8bf 100644 --- a/src/TxSearch.cpp +++ b/src/TxSearch.cpp @@ -492,7 +492,8 @@ TxSearch::search() tx_data.total_sent = total_sent; tx_data.unlock_time = 0; tx_data.height = searched_blk_no; - tx_data.coinbase = is_coinbase(tx); + tx_data.coinbase = is_coinbase; + tx_data.spendable = is_spendable; tx_data.payment_id = CurrentBlockchainStatus::get_payment_id_as_string(tx); tx_data.mixin = get_mixin_no(tx) - 1; tx_data.timestamp = blk_timestamp_mysql_format; diff --git a/src/ssqlses.h b/src/ssqlses.h index 340a0bd..022eb10 100644 --- a/src/ssqlses.h +++ b/src/ssqlses.h @@ -90,15 +90,14 @@ struct XmrTransaction : public Transactions )"; static constexpr const char* INSERT_STMT = R"( - INSERT IGNORE INTO `Transactions` (`hash`, `prefix_hash` , - `account_id`, `total_received`, - `total_sent`, `unlock_time`, `height`, - `coinbase`, `spendable`, `payment_id`, `mixin`, - `timestamp`) + INSERT IGNORE INTO `Transactions` (`hash`, `prefix_hash`, `account_id`, + `total_received`, `total_sent`, `unlock_time`, + `height`, `coinbase`, `spendable`, + `payment_id`, `mixin`, `timestamp`) VALUES (%0q, %1q, %2q, %3q, %4q, %5q, %6q, %7q, %8q, - %9q, %10q, , %11q); + %9q, %10q, %11q); )"; static constexpr const char* SUM_XMR_RECIEVED = R"(