From 993d1ecd191a7d9161082d4026f020cbf00835bb Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Thu, 17 Dec 2020 16:33:56 +0100 Subject: test, fuzz: fix constructing CNode with invalid inbound_onion as CNode ctor should only be passed inbound_onion = true when the connection is inbound --- src/test/net_tests.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/net_tests.cpp') diff --git a/src/test/net_tests.cpp b/src/test/net_tests.cpp index beac65942e..eb2f4cee69 100644 --- a/src/test/net_tests.cpp +++ b/src/test/net_tests.cpp @@ -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); -- cgit v1.2.3