Merge pull request #6013

635401b wallet2: fix the logged number of detached transfers (moneromooo-monero)
This commit is contained in:
luigi1111 2019-10-25 13:43:00 -05:00
commit 59439f8113
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

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