mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
add orphanage byte accounting to TxDownloadManagerImpl::CheckIsEmpty()
This commit is contained in:
parent
c289217c01
commit
982ce10178
1 changed files with 2 additions and 0 deletions
|
@ -578,9 +578,11 @@ CTransactionRef TxDownloadManagerImpl::GetTxToReconsider(NodeId nodeid)
|
||||||
void TxDownloadManagerImpl::CheckIsEmpty(NodeId nodeid)
|
void TxDownloadManagerImpl::CheckIsEmpty(NodeId nodeid)
|
||||||
{
|
{
|
||||||
assert(m_txrequest.Count(nodeid) == 0);
|
assert(m_txrequest.Count(nodeid) == 0);
|
||||||
|
assert(m_orphanage.UsageByPeer(nodeid) == 0);
|
||||||
}
|
}
|
||||||
void TxDownloadManagerImpl::CheckIsEmpty()
|
void TxDownloadManagerImpl::CheckIsEmpty()
|
||||||
{
|
{
|
||||||
|
assert(m_orphanage.TotalOrphanUsage() == 0);
|
||||||
assert(m_orphanage.Size() == 0);
|
assert(m_orphanage.Size() == 0);
|
||||||
assert(m_txrequest.Size() == 0);
|
assert(m_txrequest.Size() == 0);
|
||||||
assert(m_num_wtxid_peers == 0);
|
assert(m_num_wtxid_peers == 0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue