test: check pre-segwit peer error in `getblockfrompeer` RPC #25259

pull theStack wants to merge 1 commits into bitcoin:master from theStack:202205-test-rpc-getblockfrompeer_check_presegwit_peer_error changing 1 files +13 −0
  1. theStack commented at 9:12 PM on May 31, 2022: member

    This PR adds missing test coverage for the getblockfrompeer RPC, in the case that a block is tried to be fetched from a pre-segwit peer (i.e. a peer that doesn't signal the service bit NODE_WITNESS):

    https://github.com/bitcoin/bitcoin/blob/d4d9daff7ab60a9f0cae0a34f86be0bb497f62f4/src/net_processing.cpp#L1564-L1565

  2. test: check pre-segwit peer error in `getblockfrompeer` RPC 7d0f67a0d5
  3. DrahtBot added the label Tests on May 31, 2022
  4. MarcoFalke commented at 6:11 AM on June 1, 2022: member

    cr ACK 7d0f67a0d5b94395e29fe240326824cd3be8ae9b

  5. MarcoFalke merged this on Jun 1, 2022
  6. MarcoFalke closed this on Jun 1, 2022

  7. theStack deleted the branch on Jun 1, 2022
  8. sidhujag referenced this in commit e4ab85cfa9 on Jun 1, 2022
  9. DrahtBot locked this on Jun 1, 2023
Contributors
Labels

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-14 21:13 UTC

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