aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-03-31 18:34:49 +0100
committerJohn Newbery <john@johnnewbery.com>2021-07-20 13:12:42 +0100
commit9190b01d8dcf03b74e9b9e1653688a97ac171b37 (patch)
treed42ceee268c5a577ad21fc432c7c8ae5dd306de3 /src/net_processing.cpp
parent201c5e4aec5210b258644ff96379cda0ca7273ab (diff)
downloadbitcoin-9190b01d8dcf03b74e9b9e1653688a97ac171b37.tar.xz
[net processing] Add Orphanage empty consistency check
When removing the final peer, assert that m_tx_orphanage is empty.
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index 9c4544df21..c2202c73da 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -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 &&