Remove block-request logic from INV message processing #8872

pull TheBlueMatt wants to merge 3 commits into bitcoin:master from TheBlueMatt:fetchflags2 changing 5 files +46 −31
  1. TheBlueMatt commented at 6:40 PM on October 3, 2016: member

    Built on #8871, this removes the fetch logic from INV message processing. it is rare that we care strongly about the speed of fetch in case we receive an INV, plus we found that code which did not have knowledge of the associated tip when requesting was more fragile in the context of segwit activation. Finally, this removes the one place we MarkBlockAsInFlight (ie will forcibly store the block on disk in AcceptBlock) without having seen the header first.

  2. TheBlueMatt force-pushed on Oct 3, 2016
  3. TheBlueMatt force-pushed on Oct 3, 2016
  4. TheBlueMatt commented at 9:11 PM on October 4, 2016: member

    Fixed all the tests now. @mrbandrews might want to review the changes to fullblocktest...I dont think I broke anything, but would be good to get some review there.

  5. laanwj added the label P2P on Oct 11, 2016
  6. rebroad commented at 1:12 AM on October 19, 2016: contributor

    NACK for now as I see the additional block propagation speed as more important - or I am falsely assuming this will decrease block propagation times?

  7. TheBlueMatt commented at 9:40 PM on October 23, 2016: member

    @rebroad this will not change propagation speeds between reasonably up-to-date nodes, and fixes several issues. @mrbandrews found some issues with the tests...will get this rebased once they are fixed.

  8. TheBlueMatt force-pushed on Oct 26, 2016
  9. TheBlueMatt commented at 9:15 PM on October 26, 2016: member

    Rebased and replaced my broken test update with one from @mrbandrews.

  10. sipa commented at 10:27 PM on November 7, 2016: member

    Needs rebase.

  11. [qa] Make comptool push blocks instead of relying on inv-fetch d768f151f6
  12. [qa] Respond to getheaders and do not assume a getdata on inv 3451203b5c
  13. Remove block-request logic from INV message processing 037159cebf
  14. TheBlueMatt force-pushed on Nov 7, 2016
  15. TheBlueMatt commented at 10:43 PM on November 7, 2016: member

    Rebased.

  16. sipa commented at 2:32 AM on November 8, 2016: member

    utACK 037159cebf1eae4445050cec029986514ed4e9e2

  17. laanwj merged this on Nov 21, 2016
  18. laanwj closed this on Nov 21, 2016

  19. laanwj referenced this in commit 0c577f2638 on Nov 21, 2016
  20. morcos commented at 8:06 PM on November 21, 2016: member

    posthumous utACK Thanks!!

  21. codablock referenced this in commit e5cc7d0eb4 on Jan 15, 2018
  22. gladcow referenced this in commit 064f8dc0aa on Mar 5, 2018
  23. gladcow referenced this in commit b3c281775f on Mar 13, 2018
  24. gladcow referenced this in commit 597da4e24d on Mar 14, 2018
  25. gladcow referenced this in commit 30ad74bb6d on Mar 15, 2018
  26. gladcow referenced this in commit efec14ba8a on Mar 15, 2018
  27. gladcow referenced this in commit 961978146b on Mar 15, 2018
  28. gladcow referenced this in commit 332385ce33 on Mar 15, 2018
  29. gladcow referenced this in commit f5f2eb076a on Mar 24, 2018
  30. gladcow referenced this in commit 8fdfa6e414 on Apr 4, 2018
  31. UdjinM6 referenced this in commit bc45a2f87a on Apr 11, 2018
  32. andvgal referenced this in commit 78bf9c1fcf on Jan 6, 2019
  33. andvgal referenced this in commit fd5c50bc2b on Jan 6, 2019
  34. CryptoCentric referenced this in commit 3fd59437d8 on Feb 24, 2019
  35. CryptoCentric referenced this in commit dd3fd51204 on Feb 28, 2019
  36. MarcoFalke 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-24 15:15 UTC

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