1
0
Fork 0
forked from lthn/blockchain

fixed simplewallet issues with get_recent_transfers

This commit is contained in:
cryptozoidberg 2019-12-02 00:20:16 +01:00
parent 6464a65b31
commit 9b8e438ab4
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -715,7 +715,8 @@ bool simple_wallet::list_recent_transfers(const std::vector<std::string>& args)
{
std::vector<tools::wallet_public::wallet_transfer_info> unconfirmed;
std::vector<tools::wallet_public::wallet_transfer_info> recent;
m_wallet->get_recent_transfers_history(recent, 0, 0);
uint64_t total = 0;
m_wallet->get_recent_transfers_history(recent, 0, 0, total);
m_wallet->get_unconfirmed_transfers(unconfirmed);
//workaround for missed fee
@ -740,7 +741,8 @@ bool simple_wallet::list_recent_transfers_ex(const std::vector<std::string>& arg
{
std::vector<tools::wallet_public::wallet_transfer_info> unconfirmed;
std::vector<tools::wallet_public::wallet_transfer_info> recent;
m_wallet->get_recent_transfers_history(recent, 0, 0);
uint64_t total = 0;
m_wallet->get_recent_transfers_history(recent, 0, 0, total);
m_wallet->get_unconfirmed_transfers(unconfirmed);
//workaround for missed fee
stringstream ss;