diff options
| author | Matt Corallo <[email protected]> | 2017-02-06 11:42:49 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-02-10 11:32:40 -0500 |
| commit | 644f1234e22626a7b5618a1dae60a8457a4063b1 (patch) | |
| tree | 1126ea900c892ed9ec77b62e11640e18bd5f7c0a /src/net.cpp | |
| parent | net: fix a few races. Credit @TheBlueMatt (diff) | |
| download | discoin-644f1234e22626a7b5618a1dae60a8457a4063b1.tar.xz discoin-644f1234e22626a7b5618a1dae60a8457a4063b1.zip | |
Make nTimeConnected const in CNode
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp index c96ca469f..0e6e00d58 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2574,6 +2574,7 @@ unsigned int CConnman::GetReceiveFloodSize() const { return nReceiveFloodSize; } unsigned int CConnman::GetSendBufferSize() const{ return nSendBufferMaxSize; } CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn, SOCKET hSocketIn, const CAddress& addrIn, uint64_t nKeyedNetGroupIn, uint64_t nLocalHostNonceIn, const std::string& addrNameIn, bool fInboundIn) : + nTimeConnected(GetSystemTimeInSeconds()), addr(addrIn), fInbound(fInboundIn), id(idIn), @@ -2593,7 +2594,6 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn nLastRecv = 0; nSendBytes = 0; nRecvBytes = 0; - nTimeConnected = GetSystemTimeInSeconds(); nTimeOffset = 0; addrName = addrNameIn == "" ? addr.ToStringIPPort() : addrNameIn; nVersion = 0; |