@@ -2512,9 +2512,13 @@ unsigned int CConnman::GetSendBufferSize() const{ return nSendBufferMaxSize; }
2512
2512
CNode::CNode (NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress& addrIn, uint64_t nKeyedNetGroupIn, const std::string& addrNameIn, bool fInboundIn ) :
2513
2513
ssSend(SER_NETWORK, INIT_PROTO_VERSION),
2514
2514
addr(addrIn),
2515
+ fInbound(fInboundIn ),
2516
+ id(idIn),
2515
2517
nKeyedNetGroup(nKeyedNetGroupIn),
2516
2518
addrKnown(5000 , 0.001 ),
2517
- filterInventoryKnown(50000 , 0.000001 )
2519
+ filterInventoryKnown(50000 , 0.000001 ),
2520
+ nLocalServices(nLocalServicesIn),
2521
+ nMyStartingHeight(nMyStartingHeightIn)
2518
2522
{
2519
2523
nServices = NODE_NONE;
2520
2524
nServicesExpected = NODE_NONE;
@@ -2533,7 +2537,6 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn
2533
2537
fOneShot = false ;
2534
2538
fClient = false ; // set by version message
2535
2539
fFeeler = false ;
2536
- fInbound = fInboundIn ;
2537
2540
fNetworkNode = false ;
2538
2541
fSuccessfullyConnected = false ;
2539
2542
fDisconnect = false ;
@@ -2562,12 +2565,8 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn
2562
2565
minFeeFilter = 0 ;
2563
2566
lastSentFeeFilter = 0 ;
2564
2567
nextSendTimeFeeFilter = 0 ;
2565
- id = idIn;
2566
2568
nOptimisticBytesWritten = 0 ;
2567
- nLocalServices = nLocalServicesIn;
2568
-
2569
2569
GetRandBytes ((unsigned char *)&nLocalHostNonce, sizeof (nLocalHostNonce));
2570
- nMyStartingHeight = nMyStartingHeightIn;
2571
2570
2572
2571
BOOST_FOREACH (const std::string &msg, getAllNetMessageTypes ())
2573
2572
mapRecvBytesPerMsgCmd[msg] = 0 ;
0 commit comments