mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
ignore non-wtxidrelay compliant invs
This commit is contained in:
parent
ac88e2eb61
commit
2d282e0cba
1 changed files with 7 additions and 0 deletions
|
@ -2598,6 +2598,13 @@ void ProcessMessage(
|
|||
if (interruptMsgProc)
|
||||
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);
|
||||
LogPrint(BCLog::NET, "got inv: %s %s peer=%d\n", inv.ToString(), fAlreadyHave ? "have" : "new", pfrom.GetId());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue