Dont calculate fee for conaibase txs

This commit is contained in:
moneroexamples 2016-05-06 01:00:22 +00:00
parent ebc199e040
commit 189809831a
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ int main(int ac, const char* av[]) {
CROW_ROUTE(app, "/search").methods("GET"_method) CROW_ROUTE(app, "/search").methods("GET"_method)
([&](const crow::request& req) { ([&](const crow::request& req) {
return xmrblocks.search(string(req.url_params.get("value"))); return xmrblocks.search(string(req.url_params.get("value")));
}); });

View File

@ -1322,9 +1322,9 @@ namespace xmreg {
txd.xmr_outputs = sum_money_in_outputs(tx); txd.xmr_outputs = sum_money_in_outputs(tx);
// get mixin number // get mixin number
txd.mixin_no = get_mixin_no(tx); txd.mixin_no = get_mixin_no(tx);
if (!coinbase) if (!coinbase && tx.vin.size() > 1)
{ {
// get tx fee // get tx fee
txd.fee = get_tx_fee(tx); txd.fee = get_tx_fee(tx);