mirror of
https://github.com/vtnerd/monero-lws.git
synced 2024-12-22 19:39:23 +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;
|
||||
}
|
||||
|
||||
const db::output_id this_id = resp.transactions.back().info.spend_meta.id;
|
||||
if (metas.empty() || metas.back().id < this_id)
|
||||
metas.push_back(resp.transactions.back().info.spend_meta);
|
||||
const db::output::spend_meta_ meta = output.get_value<MONERO_FIELD(db::output, spend_meta)>();
|
||||
if (metas.empty() || metas.back().id < meta.id)
|
||||
metas.push_back(meta);
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue