diff options
author | Jon Atack <jon@atack.com> | 2020-12-17 16:33:56 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-12-17 19:56:00 +0100 |
commit | 993d1ecd191a7d9161082d4026f020cbf00835bb (patch) | |
tree | 61fb760240d31cf7acfec84df4459c856307c05c /src/test/net_tests.cpp | |
parent | b7136c11ab6448142cfcc617babe866e428eeeb4 (diff) |
test, fuzz: fix constructing CNode with invalid inbound_onion
as CNode ctor should only be passed inbound_onion = true
when the connection is inbound
Diffstat (limited to 'src/test/net_tests.cpp')
-rw-r--r-- | src/test/net_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |