aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2016-05-24 18:59:16 -0400
committerCory Fields <cory-nospam-@coryfields.com>2016-09-08 12:06:24 -0400
commitaaf018e3b79417ecfd39291a8c100df77969d77a (patch)
treeaebdb2c2dbdd1f2d0eb967222cc7f246b16c55d3 /src/main.cpp
parentb1a5f4320878e34eb998737dce333270dd83e436 (diff)
downloadbitcoin-aaf018e3b79417ecfd39291a8c100df77969d77a.tar.xz
net: handle nodesignals in CConnman
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4dc9d71eea..bd85fa8f07 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -348,7 +348,8 @@ void InitializeNode(NodeId nodeid, const CNode *pnode) {
state.address = pnode->addr;
}
-void FinalizeNode(NodeId nodeid) {
+void FinalizeNode(NodeId nodeid, bool& fUpdateConnectionTime) {
+ fUpdateConnectionTime = false;
LOCK(cs_main);
CNodeState *state = State(nodeid);
@@ -356,7 +357,7 @@ void FinalizeNode(NodeId nodeid) {
nSyncStarted--;
if (state->nMisbehavior == 0 && state->fCurrentlyConnected) {
- AddressCurrentlyConnected(state->address);
+ fUpdateConnectionTime = true;
}
BOOST_FOREACH(const QueuedBlock& entry, state->vBlocksInFlight) {