mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
Do not process tx inv's in blocksonly mode
This commit is contained in:
parent
4044f07d1c
commit
420fa8143a
@ -4218,7 +4218,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
|||||||
bool fAlreadyHave = AlreadyHave(inv);
|
bool fAlreadyHave = AlreadyHave(inv);
|
||||||
LogPrint("net", "got inv: %s %s peer=%d\n", inv.ToString(), fAlreadyHave ? "have" : "new", pfrom->id);
|
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);
|
pfrom->AskFor(inv);
|
||||||
|
|
||||||
if (inv.type == MSG_BLOCK) {
|
if (inv.type == MSG_BLOCK) {
|
||||||
|
Loading…
Reference in New Issue
Block a user