mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
[net processing] Add Orphanage empty consistency check
When removing the final peer, assert that m_tx_orphanage is empty.
This commit is contained in:
parent
201c5e4aec
commit
9190b01d8d
2 changed files with 8 additions and 0 deletions
|
|
@ -1194,6 +1194,7 @@ void PeerManagerImpl::FinalizeNode(const CNode& node)
|
|||
assert(m_outbound_peers_with_protect_from_disconnect == 0);
|
||||
assert(m_wtxid_relay_peers == 0);
|
||||
assert(m_txrequest.Size() == 0);
|
||||
assert(m_orphanage.Size() == 0);
|
||||
}
|
||||
} // cs_main
|
||||
if (node.fSuccessfullyConnected && misbehavior == 0 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue