drop mapAlreadyAskFor #4544

pull kazcw wants to merge 1 commits into bitcoin:master from kazcw:drop-mapAlreadyAskedFor changing 2 files +17 −41
  1. kazcw commented at 9:40 AM on July 16, 2014: contributor

    mapAlreadyAskFor doesn't have any effect unless a peer is sending invs for the same invalid transactions more than every 2 minutes, and even in that case it just slows down the unnecessary re-requesting.

    Bitcoind never sends invs for the same tx that often (wallet rebroadcasts are at least 5 minutes apart), and if a slightly malicious node wants to cause a lot of unnecessary but low-cost network messages there are plenty of other ways to do that anyway.

  2. BitcoinPullTester commented at 10:15 AM on July 16, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4544_34ee579ea02daab5613e7078170e67f83501b5ab/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  3. drop mapAlreadyAskFor
    mapAlreadyAskFor doesn't have any effect unless a peer is sending invs for the
    same invalid transactions more than every 2 minutes, and even in that case it
    just slows down the unnecessary re-requesting.
    
    Bitcoind never sends invs for the same tx that often (wallet rebroadcasts are at
    least 5 minutes apart), and if a slightly malicious node wants to cause a lot of
    unnecessary but low-cost network messages there are plenty of other ways to do
    that anyway.
    6e7fe44925
  4. cozz commented at 10:54 AM on July 16, 2014: contributor

    I always thought this map prevents us from requesting the same tx from multiple peers to not waste bandwidth, in case multiple peers announce the same tx to us at about the same time.

  5. kazcw commented at 10:56 AM on July 16, 2014: contributor

    Oh, I see that! it's purpose makes sense now, thanks.

  6. kazcw closed this on Jul 16, 2014

  7. kazcw deleted the branch on Jul 16, 2014
  8. laanwj commented at 12:30 PM on July 16, 2014: member

    Thanks for trying to improve the network code and learning :)

  9. 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-05-03 00:15 UTC

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