diff options
author | kenshi84 <kenshi84@protonmail.ch> | 2017-03-19 17:45:39 +0900 |
---|---|---|
committer | kenshi84 <kenshi84@protonmail.ch> | 2017-03-19 17:45:39 +0900 |
commit | df810a825054f4353608cc95ca7a3794b6dc3fce (patch) | |
tree | 275ccfe0ccf1acad7e1c85cac0b775482fdf299d /src/wallet/wallet_rpc_server.cpp | |
parent | Merge pull request #1887 (diff) | |
download | monero-df810a825054f4353608cc95ca7a3794b6dc3fce.tar.xz |
wallet-rpc bugfix: get_transfer_by_txid previously checking against payment id
Diffstat (limited to 'src/wallet/wallet_rpc_server.cpp')
-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; |