diff options
| author | Adam Soltys <[email protected]> | 2026-06-14 23:13:05 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-06-14 23:13:05 -0700 |
| commit | 59f1ab912a104b60df8fa31aecd972c04e564d23 (patch) | |
| tree | 6152f23f757e99c3839fcc3f1365d6c2340a5163 /src/app.js | |
| parent | bcf52e7ed2ad3a960f55e6c4f1ff26fc91b49d31 (diff) | |
| download | coinosv3-59f1ab912a104b60df8fa31aecd972c04e564d23.tar.gz coinosv3-59f1ab912a104b60df8fa31aecd972c04e564d23.zip | |
Fix scan rate-limiting (CORS errors) + tidy seed input
The "CORS" errors during scan were actually mempool.space rate-limiting:
bursting ~40 address lookups gets some throttled, and throttled responses
lack the access-control-allow-origin header, which the browser reports as a
CORS failure.
- api.js: route all requests through a global throttle (max 2 concurrent,
250ms min gap between starts, ~4 req/s) with exponential backoff retry so
occasional throttles recover instead of failing. Unit-tested spacing +
retry recovery.
- Import pane: drop the "(12 or 24 words)" parenthetical (we generate 12),
and replace the scrunched ellipsis placeholder with an enumerated
word1..word12.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -277,9 +277,10 @@ function importPane() { h( 'label', { class: 'field' }, - h('span', { class: 'lab' }, 'Seed phrase (12 or 24 words)'), + h('span', { class: 'lab' }, 'Seed phrase'), h('textarea', { - placeholder: 'word1 word2 word3 …', + placeholder: + 'word1 word2 word3 word4 word5 word6 word7 word8 word9 word10 word11 word12', autocapitalize: 'none', autocomplete: 'off', spellcheck: 'false', |
