Many "peer sent us block transactions for a block we weren't expecting" errors #9031

issue rebroad opened this issue on October 27, 2016
  1. rebroad commented at 10:49 AM on October 27, 2016: contributor

    Currently when a peer received blocks from another peer before a full compact block is received, we get this error when the compact block blocktxns finally arrive. This is because when the block is received MarkBlockAsReceived() is called which removes the mapping of the block being in flight, thereby triggering this error when the blocktxns do arrive, which we requested.

  2. laanwj added the label P2P on Oct 27, 2016
  3. TheBlueMatt commented at 1:22 PM on October 27, 2016: member

    No peer should be providing an unsolicited block, so the error isnt in compact blocks, its on the peer that gave you the full blocks' side.

  4. rebroad commented at 3:41 AM on October 29, 2016: contributor

    @TheBlueMatt No peer should ever do DoS - does this mean we shouldn't have DoS protection code?

    Anyway, I think you are incorrect, as, as far as I know, the relay networks provide unsolicited blocks, as do miners.

  5. gmaxwell commented at 4:36 AM on November 21, 2016: contributor

    No node should be sending an unsolicited block, it is a horrific waste of bandwidth. We should be banning on that, unless whitelisted. (for the relay network client, that is a local connection -- not remote peers.)

  6. laanwj closed this on Nov 21, 2016

  7. DrahtBot locked this on Sep 8, 2021

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-04-22 18:15 UTC

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