diff options
| author | Patick Strateman <[email protected]> | 2015-11-14 04:44:59 -0800 |
|---|---|---|
| committer | Patick Strateman <[email protected]> | 2015-11-14 04:52:21 -0800 |
| commit | 420fa8143a81f60fea79ee05df553e89378f1054 (patch) | |
| tree | d54d46ae33da4644964b0bdcb6c0f1a2d090fec4 /src/main.cpp | |
| parent | Add blocksonly mode (diff) | |
| download | discoin-420fa8143a81f60fea79ee05df553e89378f1054.tar.xz discoin-420fa8143a81f60fea79ee05df553e89378f1054.zip | |
Do not process tx inv's in blocksonly mode
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5208fbb03..b35a03273 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) { |