Merge pull request #1892

df810a82 wallet-rpc bugfix: get_transfer_by_txid previously checking against payment id (kenshi84)
This commit is contained in:
Riccardo Spagni 2017-03-19 22:58:55 +02:00
commit 45fa27b56a
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -1146,7 +1146,7 @@ namespace tools
std::list<std::pair<crypto::hash, tools::wallet2::payment_details>> payments;
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) {
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);
return true;