aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-06-21 16:09:46 -0700
committerMatt Corallo <git@bluematt.me>2016-06-21 16:09:46 -0700
commit48efec82f3a18364c019577495914fcebb425e35 (patch)
treeb405d515289c303a5ffda3b490f2f0283e244c61 /src
parentccd06b94f69c3e7758c35ac4bcd36d0e9450e158 (diff)
Fix some minor compact block issues that came up in review
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 60a33f9c2f..f5b1410114 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4613,7 +4613,7 @@ void static ProcessGetData(CNode* pfrom, const Consensus::Params& consensusParam
// Track requests for our stuff.
GetMainSignals().Inventory(inv.hash);
- if (inv.type == MSG_BLOCK || inv.type == MSG_FILTERED_BLOCK)
+ if (inv.type == MSG_BLOCK || inv.type == MSG_FILTERED_BLOCK || inv.type == MSG_CMPCT_BLOCK)
break;
}
}
@@ -5077,8 +5077,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
return true;
}
- if (it->second->nHeight < chainActive.Height() - 10) {
- LogPrint("net", "Peer %d sent us a getblocktxn for a block > 10 deep", pfrom->id);
+ if (it->second->nHeight < chainActive.Height() - 15) {
+ LogPrint("net", "Peer %d sent us a getblocktxn for a block > 15 deep", pfrom->id);
return true;
}