aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatick Strateman <patrick.strateman@gmail.com>2015-11-14 04:44:59 -0800
committerPatick Strateman <patrick.strateman@gmail.com>2015-11-14 04:52:21 -0800
commit420fa8143a81f60fea79ee05df553e89378f1054 (patch)
treed54d46ae33da4644964b0bdcb6c0f1a2d090fec4 /src
parent4044f07d1c5eacb0ec732f1232489aa77fb7bb3b (diff)
Do not process tx inv's in blocksonly mode
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5208fbb031..b35a032733 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4218,7 +4218,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
bool fAlreadyHave = AlreadyHave(inv);
LogPrint("net", "got inv: %s %s peer=%d\n", inv.ToString(), fAlreadyHave ? "have" : "new", pfrom->id);
- if (!fAlreadyHave && !fImporting && !fReindex && inv.type != MSG_BLOCK)
+ if (!fAlreadyHave && !fImporting && !fReindex && inv.type != MSG_BLOCK && !GetBoolArg("-blocksonly", false))
pfrom->AskFor(inv);
if (inv.type == MSG_BLOCK) {