mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-15 06:11:09 +02:00
add orphanage byte accounting to TxDownloadManagerImpl::CheckIsEmpty()
This commit is contained in:
parent
c289217c01
commit
982ce10178
@ -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…
x
Reference in New Issue
Block a user