mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-13 11:40:42 +02:00
ignore non-wtxidrelay compliant invs
This commit is contained in:
parent
ac88e2eb61
commit
2d282e0cba
@ -2598,6 +2598,13 @@ void ProcessMessage(
|
|||||||
if (interruptMsgProc)
|
if (interruptMsgProc)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// ignore INVs that don't match wtxidrelay setting
|
||||||
|
if (State(pfrom.GetId())->m_wtxid_relay) {
|
||||||
|
if (inv.type == MSG_TX) continue;
|
||||||
|
} else {
|
||||||
|
if (inv.type == MSG_WTX) continue;
|
||||||
|
}
|
||||||
|
|
||||||
bool fAlreadyHave = AlreadyHave(inv, mempool);
|
bool fAlreadyHave = AlreadyHave(inv, mempool);
|
||||||
LogPrint(BCLog::NET, "got inv: %s %s peer=%d\n", inv.ToString(), fAlreadyHave ? "have" : "new", pfrom.GetId());
|
LogPrint(BCLog::NET, "got inv: %s %s peer=%d\n", inv.ToString(), fAlreadyHave ? "have" : "new", pfrom.GetId());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user