net processing: requeue transaction GETDATA requests more frequently #18955

pull jnewbery wants to merge 4 commits into bitcoin:master from jnewbery:2020-05-requeue-txrequest changing 7 files +50 −44
  1. jnewbery commented at 1:12 AM on May 12, 2020: member

    Requeuing requests after the previous timeout means that if the transaction has cleared from g_already_asked_for, we'll wait up to a minute until we request it from another peer. Instead, set the process_time more frequently, so we'll rerequest it sooner.

  2. [moveonly] Move PoissonNextSend to random
    PoissonNextSend is no longer used only for net. Since it's
    a utility random function, move it to random.cpp
    6d13d4db20
  3. [style] Don't use implicit std namespace in PoissonNextSend 8dd39d1e80
  4. scripted-diff: replace PoissonNextSend with GetPoissonRand
    Poisson distributions are used for more than just the next inv send.
    Make the name more generic.
    
    -BEGIN VERIFY SCRIPT-
    sed -i 's/\<PoissonNextSend\>/GetPoissonRand/g' $(git grep -l 'PoissonNextSend' ./src)
    -END VERIFY SCRIPT-
    3e7e4f59be
  5. [net processing] requeue transaction GETDATA requests more frequently
    This means that if the transaction has cleared out from
    g_already_asked_for, we'll rerequest from an announcing peer sooner.
    3acca09685
  6. fanquake added the label P2P on May 12, 2020
  7. jnewbery commented at 1:22 AM on May 12, 2020: member

    Oops. p2p_txdownload.py still failing. I'll re-open once I've fixed it up.

  8. jnewbery closed this on May 12, 2020

  9. DrahtBot locked this on Feb 15, 2022
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-30 12:14 UTC

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