@@ -59,7 +59,7 @@ BOOST_AUTO_TEST_CASE(outbound_slow_chain_eviction)
5959
6060 // Mock an outbound peer
6161 CAddress addr1 (ip (0xa0b0c001 ), NODE_NONE);
62- CNode dummyNode1 (id++, ServiceFlags (NODE_NETWORK | NODE_WITNESS), INVALID_SOCKET, addr1, /* nKeyedNetGroupIn */ 0 , /* nLocalHostNonceIn */ 0 , CAddress (), /* pszDest */ " " , ConnectionType::OUTBOUND_FULL_RELAY, /* inbound_onion */ false );
62+ CNode dummyNode1 (id++, ServiceFlags (NODE_NETWORK | NODE_WITNESS), INVALID_SOCKET, addr1, /* nKeyedNetGroupIn= */ 0 , /* nLocalHostNonceIn= */ 0 , CAddress (), /* addrNameIn= */ " " , ConnectionType::OUTBOUND_FULL_RELAY, /* inbound_onion= */ false );
6363 dummyNode1.SetCommonVersion (PROTOCOL_VERSION);
6464
6565 peerLogic->InitializeNode (&dummyNode1);
@@ -108,7 +108,7 @@ BOOST_AUTO_TEST_CASE(outbound_slow_chain_eviction)
108108static void AddRandomOutboundPeer (std::vector<CNode*>& vNodes, PeerManager& peerLogic, ConnmanTestMsg& connman)
109109{
110110 CAddress addr (ip (g_insecure_rand_ctx.randbits (32 )), NODE_NONE);
111- vNodes.emplace_back (new CNode (id++, ServiceFlags (NODE_NETWORK | NODE_WITNESS), INVALID_SOCKET, addr, /* nKeyedNetGroupIn */ 0 , /* nLocalHostNonceIn */ 0 , CAddress (), /* pszDest */ " " , ConnectionType::OUTBOUND_FULL_RELAY, /* inbound_onion */ false ));
111+ vNodes.emplace_back (new CNode (id++, ServiceFlags (NODE_NETWORK | NODE_WITNESS), INVALID_SOCKET, addr, /* nKeyedNetGroupIn= */ 0 , /* nLocalHostNonceIn= */ 0 , CAddress (), /* addrNameIn= */ " " , ConnectionType::OUTBOUND_FULL_RELAY, /* inbound_onion= */ false ));
112112 CNode &node = *vNodes.back ();
113113 node.SetCommonVersion (PROTOCOL_VERSION);
114114
@@ -212,9 +212,9 @@ BOOST_AUTO_TEST_CASE(peer_discouragement)
212212 std::array<CNode*, 3 > nodes;
213213
214214 banman->ClearBanned ();
215- nodes[0 ] = new CNode{id++, NODE_NETWORK, INVALID_SOCKET, addr[0 ], /* nKeyedNetGroupIn */ 0 ,
216- /* nLocalHostNonceIn */ 0 , CAddress (), /* pszDest */ " " ,
217- ConnectionType::INBOUND, /* inbound_onion */ false };
215+ nodes[0 ] = new CNode{id++, NODE_NETWORK, INVALID_SOCKET, addr[0 ], /* nKeyedNetGroupIn= */ 0 ,
216+ /* nLocalHostNonceIn */ 0 , CAddress (), /* addrNameIn= */ " " ,
217+ ConnectionType::INBOUND, /* inbound_onion= */ false };
218218 nodes[0 ]->SetCommonVersion (PROTOCOL_VERSION);
219219 peerLogic->InitializeNode (nodes[0 ]);
220220 nodes[0 ]->fSuccessfullyConnected = true ;
@@ -228,9 +228,9 @@ BOOST_AUTO_TEST_CASE(peer_discouragement)
228228 BOOST_CHECK (nodes[0 ]->fDisconnect );
229229 BOOST_CHECK (!banman->IsDiscouraged (other_addr)); // Different address, not discouraged
230230
231- nodes[1 ] = new CNode{id++, NODE_NETWORK, INVALID_SOCKET, addr[1 ], /* nKeyedNetGroupIn */ 1 ,
232- /* nLocalHostNonceIn */ 1 , CAddress (), /* pszDest */ " " ,
233- ConnectionType::INBOUND, /* inbound_onion */ false };
231+ nodes[1 ] = new CNode{id++, NODE_NETWORK, INVALID_SOCKET, addr[1 ], /* nKeyedNetGroupIn= */ 1 ,
232+ /* nLocalHostNonceIn */ 1 , CAddress (), /* addrNameIn= */ " " ,
233+ ConnectionType::INBOUND, /* inbound_onion= */ false };
234234 nodes[1 ]->SetCommonVersion (PROTOCOL_VERSION);
235235 peerLogic->InitializeNode (nodes[1 ]);
236236 nodes[1 ]->fSuccessfullyConnected = true ;
@@ -259,9 +259,9 @@ BOOST_AUTO_TEST_CASE(peer_discouragement)
259259
260260 // Make sure non-IP peers are discouraged and disconnected properly.
261261
262- nodes[2 ] = new CNode{id++, NODE_NETWORK, INVALID_SOCKET, addr[2 ], /* nKeyedNetGroupIn */ 1 ,
263- /* nLocalHostNonceIn */ 1 , CAddress (), /* pszDest */ " " ,
264- ConnectionType::OUTBOUND_FULL_RELAY, /* inbound_onion */ false };
262+ nodes[2 ] = new CNode{id++, NODE_NETWORK, INVALID_SOCKET, addr[2 ], /* nKeyedNetGroupIn= */ 1 ,
263+ /* nLocalHostNonceIn */ 1 , CAddress (), /* addrNameIn= */ " " ,
264+ ConnectionType::OUTBOUND_FULL_RELAY, /* inbound_onion= */ false };
265265 nodes[2 ]->SetCommonVersion (PROTOCOL_VERSION);
266266 peerLogic->InitializeNode (nodes[2 ]);
267267 nodes[2 ]->fSuccessfullyConnected = true ;
@@ -297,7 +297,7 @@ BOOST_AUTO_TEST_CASE(DoS_bantime)
297297 SetMockTime (nStartTime); // Overrides future calls to GetTime()
298298
299299 CAddress addr (ip (0xa0b0c001 ), NODE_NONE);
300- CNode dummyNode (id++, NODE_NETWORK, INVALID_SOCKET, addr, /* nKeyedNetGroupIn */ 4 , /* nLocalHostNonceIn */ 4 , CAddress (), /* pszDest */ " " , ConnectionType::INBOUND, /* inbound_onion */ false );
300+ CNode dummyNode (id++, NODE_NETWORK, INVALID_SOCKET, addr, /* nKeyedNetGroupIn= */ 4 , /* nLocalHostNonceIn= */ 4 , CAddress (), /* addrNameIn= */ " " , ConnectionType::INBOUND, /* inbound_onion= */ false );
301301 dummyNode.SetCommonVersion (PROTOCOL_VERSION);
302302 peerLogic->InitializeNode (&dummyNode);
303303 dummyNode.fSuccessfullyConnected = true ;
0 commit comments