aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorEric Lombrozo <elombrozo@gmail.com>2013-06-06 00:04:33 -0700
committerEric Lombrozo <elombrozo@gmail.com>2013-06-06 00:04:33 -0700
commit6e68524e95da2bedc21b1d95c4a206b902ab7c22 (patch)
tree6618fed58e3a03f19255bca779d4da3cc8860d3a /src/net.cpp
parent501da2503a39dd88470df89ccc923c696fe6b111 (diff)
downloadbitcoin-6e68524e95da2bedc21b1d95c4a206b902ab7c22.tar.xz
Removed the main.h include from net.cpp.
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/net.cpp b/src/net.cpp
index dc9a7e5371..adc5f93029 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -5,7 +5,7 @@
#include "db.h"
#include "net.h"
-#include "main.h"
+#include "core.h"
#include "addrman.h"
#include "ui_interface.h"
#include "script.h"
@@ -1567,11 +1567,6 @@ void static StartSync(const vector<CNode*> &vNodes) {
CNode *pnodeNewSync = NULL;
double dBestScore = 0;
- // fImporting and fReindex are accessed out of cs_main here, but only
- // as an optimization - they are checked again in SendMessages.
- if (fImporting || fReindex)
- return;
-
// Iterate over all nodes
BOOST_FOREACH(CNode* pnode, vNodes) {
// check preconditions for allowing a sync
@@ -1855,7 +1850,6 @@ bool StopNode()
{
printf("StopNode()\n");
MapPort(false);
- nTransactionsUpdated++;
if (semOutbound)
for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++)
semOutbound->post();