Skip to content

Commit 420fa81

Browse files
committed
Do not process tx inv's in blocksonly mode
1 parent 4044f07 commit 420fa81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4218,7 +4218,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
42184218
bool fAlreadyHave = AlreadyHave(inv);
42194219
LogPrint("net", "got inv: %s %s peer=%d\n", inv.ToString(), fAlreadyHave ? "have" : "new", pfrom->id);
42204220

4221-
if (!fAlreadyHave && !fImporting && !fReindex && inv.type != MSG_BLOCK)
4221+
if (!fAlreadyHave && !fImporting && !fReindex && inv.type != MSG_BLOCK && !GetBoolArg("-blocksonly", false))
42224222
pfrom->AskFor(inv);
42234223

42244224
if (inv.type == MSG_BLOCK) {

0 commit comments

Comments
 (0)