test, fuzz: fix constructing CNode with invalid inbound_onion

as CNode ctor should only be passed inbound_onion = true
when the connection is inbound
This commit is contained in:
Jon Atack
2020-12-17 16:33:56 +01:00
parent b7136c11ab
commit 993d1ecd19
2 changed files with 2 additions and 2 deletions

View File

@@ -221,7 +221,7 @@ BOOST_AUTO_TEST_CASE(cnode_simple_test)
/* nKeyedNetGroupIn = */ 0,
/* nLocalHostNonceIn = */ 0,
CAddress(), pszDest, ConnectionType::OUTBOUND_FULL_RELAY,
/* inbound_onion = */ true);
/* inbound_onion = */ false);
BOOST_CHECK(pnode3->IsFullOutboundConn() == true);
BOOST_CHECK(pnode3->IsManualConn() == false);
BOOST_CHECK(pnode3->IsBlockOnlyConn() == false);