Skip to content

Commit 982ce10

Browse files
committed
add orphanage byte accounting to TxDownloadManagerImpl::CheckIsEmpty()
1 parent c289217 commit 982ce10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node/txdownloadman_impl.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,11 @@ CTransactionRef TxDownloadManagerImpl::GetTxToReconsider(NodeId nodeid)
578578
void TxDownloadManagerImpl::CheckIsEmpty(NodeId nodeid)
579579
{
580580
assert(m_txrequest.Count(nodeid) == 0);
581+
assert(m_orphanage.UsageByPeer(nodeid) == 0);
581582
}
582583
void TxDownloadManagerImpl::CheckIsEmpty()
583584
{
585+
assert(m_orphanage.TotalOrphanUsage() == 0);
584586
assert(m_orphanage.Size() == 0);
585587
assert(m_txrequest.Size() == 0);
586588
assert(m_num_wtxid_peers == 0);

0 commit comments

Comments
 (0)