diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-03-19 22:58:55 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-03-19 22:58:55 +0200 |
commit | 45fa27b56a7a4aba6c0edd9f0683c04c20fb9edd (patch) | |
tree | 0faa0f85342a10de5a5dca609b2e2f82bbf9fbbb | |
parent | Merge pull request #1890 (diff) | |
parent | wallet-rpc bugfix: get_transfer_by_txid previously checking against payment id (diff) | |
download | monero-45fa27b56a7a4aba6c0edd9f0683c04c20fb9edd.tar.xz |
Merge pull request #1892
df810a82 wallet-rpc bugfix: get_transfer_by_txid previously checking against payment id (kenshi84)
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 84b15e021..f77ddf431 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -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; |