mirror of
https://github.com/vtnerd/monero-lws.git
synced 2025-01-10 20:54:35 +00:00
Fix get_address_txs output bug
This commit is contained in:
parent
f49fa78d95
commit
b3af4e90c8
1 changed files with 4 additions and 4 deletions
|
@ -279,11 +279,11 @@ namespace lws
|
||||||
resp.transactions.back().info.spend_meta.amount += amount;
|
resp.transactions.back().info.spend_meta.amount += amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
const db::output_id this_id = resp.transactions.back().info.spend_meta.id;
|
const db::output::spend_meta_ meta = output.get_value<MONERO_FIELD(db::output, spend_meta)>();
|
||||||
if (metas.empty() || metas.back().id < this_id)
|
if (metas.empty() || metas.back().id < meta.id)
|
||||||
metas.push_back(resp.transactions.back().info.spend_meta);
|
metas.push_back(meta);
|
||||||
else
|
else
|
||||||
metas.insert(find_metadata(metas, this_id), resp.transactions.back().info.spend_meta);
|
metas.insert(find_metadata(metas, meta.id), meta);
|
||||||
|
|
||||||
resp.total_received = rpc::safe_uint64(std::uint64_t(resp.total_received) + amount);
|
resp.total_received = rpc::safe_uint64(std::uint64_t(resp.total_received) + amount);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue