From 189809831a41e867ef8cb260cd75ac3ec729eeb7 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Fri, 6 May 2016 01:00:22 +0000 Subject: [PATCH] Dont calculate fee for conaibase txs --- main.cpp | 2 +- src/page.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 4645ac1..29154db 100644 --- a/main.cpp +++ b/main.cpp @@ -101,7 +101,7 @@ int main(int ac, const char* av[]) { CROW_ROUTE(app, "/search").methods("GET"_method) - ([&](const crow::request& req) { + ([&](const crow::request& req) { return xmrblocks.search(string(req.url_params.get("value"))); }); diff --git a/src/page.h b/src/page.h index d12f7a7..6151e87 100644 --- a/src/page.h +++ b/src/page.h @@ -1322,9 +1322,9 @@ namespace xmreg { txd.xmr_outputs = sum_money_in_outputs(tx); // 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 txd.fee = get_tx_fee(tx);