net: assert CNode::m_inbound_onion is inbound in ctor

and drop an unneeded check in CNode::ConnectedThroughNetwork()
This commit is contained in:
Jon Atack
2020-10-21 11:52:19 +02:00
parent 993d1ecd19
commit 6609eb8cb5
2 changed files with 3 additions and 2 deletions

View File

@@ -1110,7 +1110,7 @@ private:
CService addrLocal GUARDED_BY(cs_addrLocal);
mutable RecursiveMutex cs_addrLocal;
//! Whether this peer connected via our Tor onion service.
//! Whether this peer is an inbound onion, e.g. connected via our Tor onion service.
const bool m_inbound_onion{false};
public: