some code cleaning

pull/2/head
moneroexamples 7 years ago
parent b6c66e25dd
commit 9bf6bbf4ea

@ -309,33 +309,6 @@ YourMoneroRequests::get_address_info(const shared_ptr< Session > session, const
j_response["spent_outputs"] = j_spent_outputs;
}
// vector<XmrTransactionWithOutsAndIns> txs;
//
// // retrieve txs from mysql associated with the given address
// if (xmr_accounts->select_txs_with_inputs_and_outputs(acc.id, txs))
// {
// json j_spent_outputs = json::array();
//
// for (XmrTransactionWithOutsAndIns tx: txs)
// {
//
// if (tx.key_image.is_null)
// {
// continue;
// }
//
// j_spent_outputs.push_back(tx.spent_output());
//
// total_sent += tx.amount;
// }
//
// j_response["spent_outputs"] = j_spent_outputs;
//
// j_response["total_sent"] = total_sent;
//
// } // if (xmr_accounts->select_txs_with_inputs_and_outputs(acc.id, txs))
} // if (xmr_accounts->select(xmr_address, acc))
string response_body = j_response.dump();

Loading…
Cancel
Save