mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 16:02:24 +00:00
wallet-rpc bugfix: get_transfer_by_txid previously checking against payment id
This commit is contained in:
parent
df140d90ee
commit
df810a8250
1 changed files with 1 additions and 1 deletions
|
@ -1146,7 +1146,7 @@ namespace tools
|
||||||
std::list<std::pair<crypto::hash, tools::wallet2::payment_details>> payments;
|
std::list<std::pair<crypto::hash, tools::wallet2::payment_details>> payments;
|
||||||
m_wallet.get_payments(payments, 0);
|
m_wallet.get_payments(payments, 0);
|
||||||
for (std::list<std::pair<crypto::hash, tools::wallet2::payment_details>>::const_iterator i = payments.begin(); i != payments.end(); ++i) {
|
for (std::list<std::pair<crypto::hash, tools::wallet2::payment_details>>::const_iterator i = payments.begin(); i != payments.end(); ++i) {
|
||||||
if (i->first == txid)
|
if (i->second.m_tx_hash == txid)
|
||||||
{
|
{
|
||||||
fill_transfer_entry(res.transfer, i->second.m_tx_hash, i->first, i->second);
|
fill_transfer_entry(res.transfer, i->second.m_tx_hash, i->first, i->second);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue