Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new electrs error message when an address has a history longer than the configured lookup limit #494

Merged
merged 3 commits into from Mar 24, 2023

Conversation

ExperiBass
Copy link
Contributor

I guess this updates #190? Makes it work again, at least on my machine (Running electrs 0.9.9)

I removed the reference to #67 since its a different error, and added some deps (bip32, bs58check) that the explorer wouldnt start without.

Also, is the err.e.message && err.e.message == necessary? it could be reduced to err.e.message == without any adverse effects afaik (but this is JS, so i wouldnt be surprised)

Closes #493

@@ -223,7 +223,7 @@ 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")
if (err.e && err.e.message && err.e.message == "history too large")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part is wrong (the check for err.e.message already exists).

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, misread. This looks right.

@janoside janoside merged commit 11eb66e into janoside:master Mar 24, 2023
@ExperiBass ExperiBass deleted the too-many-txns branch April 2, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[QoL][ElectRS] Provide a clear error message if an address has more transactions than the configured limit
2 participants