p2p: ban peers that send large NOTFOUND msgs? #34771

issue brunoerg openend this issue on March 7, 2026
  1. brunoerg commented at 4:03 pm on March 7, 2026: contributor

    Currently, NOTFOUND is sent in response to a GETDATA message which can contain at most MAX_INV_SZ items. If a peer sends a GETDATA message with more items than MAX_INV_SZ, the node is banned (Misbehaving).

    I think it would make sense to add the same for NOTFOUND messages since sending more items than it is possible for GETDATA would not make sense, and we would also avoid to allocate more memory than is necessary (within the 4MB limit).


brunoerg


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-03-09 09:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me