diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-10-25 13:43:00 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-10-25 13:43:00 -0500 |
commit | 59439f8113ca9aa1cceb2416d9fbb8b6d49f2610 (patch) | |
tree | 385b990fd437b748fdaa1af486719b54c18ab2c2 | |
parent | Merge pull request #5357 (diff) | |
parent | wallet2: fix the logged number of detached transfers (diff) | |
download | monero-59439f8113ca9aa1cceb2416d9fbb8b6d49f2610.tar.xz |
Merge pull request #6013
635401b wallet2: fix the logged number of detached transfers (moneromooo-monero)
-rw-r--r-- | src/wallet/wallet2.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 5cebc7c23..f50720a77 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3524,6 +3524,7 @@ void wallet2::detach_blockchain(uint64_t height, std::map<std::pair<uint64_t, ui THROW_WALLET_EXCEPTION_IF(it_pk == m_pub_keys.end(), error::wallet_internal_error, "public key not found"); m_pub_keys.erase(it_pk); } + transfers_detached = std::distance(it, m_transfers.end()); m_transfers.erase(it, m_transfers.end()); size_t blocks_detached = m_blockchain.size() - height; |