aboutsummaryrefslogtreecommitdiffstats
path: root/src/api.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-26 14:10:05 -0700
committerAdam Soltys <[email protected]>2026-06-26 14:10:05 -0700
commit9ce15c044ce095eea19fc0b48d229d3b78c58348 (patch)
tree01fe7f4073b289d0f57fe19a13e25bf1ab30a979 /src/api.js
parentf8834d6559cc8bc133d365bb2b3c625590483a64 (diff)
downloadcoinosv3-9ce15c044ce095eea19fc0b48d229d3b78c58348.tar.gz
coinosv3-9ce15c044ce095eea19fc0b48d229d3b78c58348.zip
Throttle Electrum requests so scans don't overwhelm public servers
The Electrum data path fired every request at once, so a scan burst dozens of calls at a rate-limited public server, which then dropped some (the timeouts). Add a concurrency cap (4 in flight; Electrum pipelines, so it stays fast) with excess queued — mirrors the Esplora scheduler's intent. Verified a full scan via the public jochen server completes in ~4.5s with peak concurrency 4, no timeouts. The throttle queue is drained on disconnect/stop alongside in-flight calls. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/api.js')
0 files changed, 0 insertions, 0 deletions