mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
Dont calculate fee for conaibase txs
This commit is contained in:
parent
ebc199e040
commit
189809831a
2 changed files with 3 additions and 3 deletions
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…
Add table
Add a link
Reference in a new issue