mirror of
https://github.com/monero-project/monero.git
synced 2025-08-16 11:00:25 -04:00
wallet: fix exceptions getting the hash of a pruned tx
This commit is contained in:
parent
b4e1dc83d2
commit
a6c24412e5
4 changed files with 13 additions and 13 deletions
|
@ -8331,7 +8331,7 @@ bool simple_wallet::get_transfers(std::vector<std::string>& local_args, std::vec
|
|||
m_in_manual_refresh.store(true, std::memory_order_relaxed);
|
||||
epee::misc_utils::auto_scope_leave_caller scope_exit_handler = epee::misc_utils::create_scope_leave_handler([&](){m_in_manual_refresh.store(false, std::memory_order_relaxed);});
|
||||
|
||||
std::vector<std::pair<cryptonote::transaction, bool>> process_txs;
|
||||
std::vector<std::tuple<cryptonote::transaction, crypto::hash, bool>> process_txs;
|
||||
m_wallet->update_pool_state(process_txs);
|
||||
if (!process_txs.empty())
|
||||
m_wallet->process_pool_state(process_txs);
|
||||
|
@ -9999,7 +9999,7 @@ bool simple_wallet::show_transfer(const std::vector<std::string> &args)
|
|||
|
||||
try
|
||||
{
|
||||
std::vector<std::pair<cryptonote::transaction, bool>> process_txs;
|
||||
std::vector<std::tuple<cryptonote::transaction, crypto::hash, bool>> process_txs;
|
||||
m_wallet->update_pool_state(process_txs);
|
||||
if (!process_txs.empty())
|
||||
m_wallet->process_pool_state(process_txs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue