Merge remote-tracking branch 'ExperiBass/too-many-txns'

Merge #494 with some tweaks: regen pnpm-lock; keep old error message id on address page (for old electrs versions); cleanup duplicate error message retrieval code
This commit is contained in:
Dan Janosik 2023-03-24 17:10:59 -04:00
commit 11eb66eece
No known key found for this signature in database
GPG key ID: 70C0B166321C0AF8
2 changed files with 4580 additions and 3 deletions

4566
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -223,12 +223,16 @@ block content
else if (addressDetailsErrors && addressDetailsErrors.length > 0)
+contentSection
each err, errIndex in addressDetailsErrors
if (err.e && err.e && err.e.message == "history too large")
- let errorMsg = "";
if (err.e && err.e.message)
- errorMsg = err.e.message;
if (errorMsg == "history too large")
span Failed to retrieve transaction history from ElectrumX because this address is involved in too many transactions (more than ElectrumX currently supports retrieving). See
a(href="https://github.com/janoside/btc-rpc-explorer/issues/67") Issue #67
span for more information.
else if (err.e && err.e.message && err.e.message == "failed to get confirmed status")
else if (errorMsg == "failed to get confirmed status")
span Failed to retrieve transaction history from Electrum Rust Server (electrs). See 
a(href="https://github.com/janoside/btc-rpc-explorer/issues/67") Issue #67
span for more information.
@ -237,6 +241,13 @@ block content
span.font-plaintext --txid-limit
span argument, to support longer transaction histories.
else if (errorMsg.endsWith("index entries, query may take too long"))
span Failed to retrieve transaction history from Electrum Rust Server (electrs).
| Consider starting electrs with a custom
span.font-plaintext --index-lookup-limit
span argument, to support longer transaction histories.
else if (err == "No address API configured")
.mb-2 No address API is configured.
.mb-0 See