upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/headless.cpp
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 08:29:44 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 08:29:44 +0000
commit73e77c3bc259a4c8e0a4cc5c376f1a9545439bdd (patch)
tree6672c8cddc3127d18d7d2a5a1700fd04e97d59c0 /src/headless.cpp
parente4f898c4a6b9900553c64b9804889b5fdae3e55f (diff)
net: retry block fetches every 15s, not every two minutes
AskFor keys its retry spacing off mapAlreadyAskedFor, which is global to the inv, so the two-minute gap does more than pace re-requests to one peer: it strings the getdatas for one block across its announcers two minutes apart. When the first peer asked does not serve the body, the second candidate is not asked for 120s and the ninth for 960s -- the observed 16-minute tip stall of #33, during which the pool kept broadcasting jobs against the stale tip and 5 of 12 found blocks orphaned. A block body is at most 1 MB and somebody demonstrably has it -- they announced it -- so on this timescale "not here yet" means "not coming from that peer". Blocks now retry on BLOCK_FETCH_RETRY_SECS (15s); transactions keep the two-minute pacing, which for them is the point.
Diffstat (limited to 'src/headless.cpp')
0 files changed, 0 insertions, 0 deletions