wallet2: fix the logged number of detached transfers

This commit is contained in:
moneromooo-monero 2019-10-14 12:09:00 +00:00
parent 4233d88341
commit 635401b077
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -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;