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.
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-
jnewbery commented at 1:12 AM on May 12, 2020: member
-
6d13d4db20
[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
-
[style] Don't use implicit std namespace in PoissonNextSend 8dd39d1e80
-
3e7e4f59be
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-
-
3acca09685
[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.
- fanquake added the label P2P on May 12, 2020
-
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.
- jnewbery closed this on May 12, 2020
- DrahtBot locked this on Feb 15, 2022