From fc85d7a9986a168974dc2ca3079a4ae746125da5 Mon Sep 17 00:00:00 2001 From: stoffu Date: Mon, 6 Nov 2017 11:49:20 +0900 Subject: simplewallet: fix in show_transfer passing wrong arg to wallet2::get_payments etc --- src/simplewallet/simplewallet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/simplewallet') diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 3d8d395db..ca99edeb3 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -5469,7 +5469,7 @@ bool simple_wallet::show_transfer(const std::vector &args) const uint64_t last_block_height = m_wallet->get_blockchain_current_height(); std::list> payments; - m_wallet->get_payments(payments, 0, m_current_subaddress_account); + m_wallet->get_payments(payments, 0, (uint64_t)-1, m_current_subaddress_account); for (std::list>::const_iterator i = payments.begin(); i != payments.end(); ++i) { const tools::wallet2::payment_details &pd = i->second; if (pd.m_tx_hash == txid) { @@ -5540,7 +5540,7 @@ bool simple_wallet::show_transfer(const std::vector &args) { m_wallet->update_pool_state(); std::list> pool_payments; - m_wallet->get_unconfirmed_payments(pool_payments); + m_wallet->get_unconfirmed_payments(pool_payments, m_current_subaddress_account); for (std::list>::const_iterator i = pool_payments.begin(); i != pool_payments.end(); ++i) { const tools::wallet2::payment_details &pd = i->second.m_pd; if (pd.m_tx_hash == txid) @@ -5567,7 +5567,7 @@ bool simple_wallet::show_transfer(const std::vector &args) } std::list> upayments; - m_wallet->get_unconfirmed_payments_out(upayments); + m_wallet->get_unconfirmed_payments_out(upayments, m_current_subaddress_account); for (std::list>::const_iterator i = upayments.begin(); i != upayments.end(); ++i) { if (i->first == txid) { -- cgit v1.2.3