diff options
| author | Patick Strateman <[email protected]> | 2015-11-14 05:10:59 -0800 |
|---|---|---|
| committer | Patick Strateman <[email protected]> | 2015-11-14 05:10:59 -0800 |
| commit | 71a2683f4b526b17adf317733b0aa18ffacecfdc (patch) | |
| tree | 3fb18ea405aacb88f78c1c2e8f7e0f44ffd7b640 /src/main.cpp | |
| parent | Add help text for blocksonly and whitelistalwaysrelay (diff) | |
| download | discoin-71a2683f4b526b17adf317733b0aa18ffacecfdc.tar.xz discoin-71a2683f4b526b17adf317733b0aa18ffacecfdc.zip | |
Use DEFAULT_BLOCKSONLY and DEFAULT_WHITELISTALWAYSRELAY constants
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 9842acb4b..fb529eb5b 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 && !GetBoolArg("-blocksonly", false)) + if (!fAlreadyHave && !fImporting && !fReindex && inv.type != MSG_BLOCK && !GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY)) pfrom->AskFor(inv); if (inv.type == MSG_BLOCK) { |