aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2017-02-06 11:42:49 -0500
committerMatt Corallo <[email protected]>2017-02-10 11:32:40 -0500
commit644f1234e22626a7b5618a1dae60a8457a4063b1 (patch)
tree1126ea900c892ed9ec77b62e11640e18bd5f7c0a /src/net.h
parentnet: fix a few races. Credit @TheBlueMatt (diff)
downloaddiscoin-644f1234e22626a7b5618a1dae60a8457a4063b1.tar.xz
discoin-644f1234e22626a7b5618a1dae60a8457a4063b1.zip
Make nTimeConnected const in CNode
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 89501c764..4bbcfac88 100644
--- a/src/net.h
+++ b/src/net.h
@@ -587,7 +587,7 @@ public:
std::atomic<int64_t> nLastSend;
std::atomic<int64_t> nLastRecv;
- int64_t nTimeConnected;
+ const int64_t nTimeConnected;
std::atomic<int64_t> nTimeOffset;
const CAddress addr;
std::string addrName;