aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-14 12:09:00 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-10-23 18:29:13 +0000
commit635401b07724c7fd84a4d975575660d2f14890ab (patch)
tree922e1e7da7caa8217a83a6003de794becefb4dc4 /src/wallet/wallet2.cpp
parentMerge pull request #5973 (diff)
downloadmonero-635401b07724c7fd84a4d975575660d2f14890ab.tar.xz
wallet2: fix the logged number of detached transfers
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index c7374b896..48c10d06e 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -3480,6 +3480,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;