diff options
| author | Adam Soltys <[email protected]> | 2026-06-26 14:10:05 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-26 14:10:05 -0700 |
| commit | 9ce15c044ce095eea19fc0b48d229d3b78c58348 (patch) | |
| tree | 01fe7f4073b289d0f57fe19a13e25bf1ab30a979 /src/electrum.js | |
| parent | f8834d6559cc8bc133d365bb2b3c625590483a64 (diff) | |
| download | coinosv3-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/electrum.js')
0 files changed, 0 insertions, 0 deletions
