Dont calculate fee for conaibase txs
This commit is contained in:
parent
ebc199e040
commit
189809831a
2
main.cpp
2
main.cpp
|
@ -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")));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue