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

Revert "Fix mempool summary views rendering" #204

Open
wants to merge 9 commits into
base: add-cross-check-to-transaction
Choose a base branch
from

Conversation

lozanopo
Copy link

Reverts #170

sickpig and others added 9 commits May 26, 2023 17:52
Rostrum 9.0.0 and Fulcrum 1.9.X introduced a modification to
blockchain.address.get_balance.

The change is related to the activation of CashTokens on May 2023

An optional parameter has been added to get_balance, namely token_filter,
so that in the calculated amount UTXOs associated to an address could be
counted in or not on the base of their association to a toke.

That lead to some kind of weird corner case where not all UTXOs got
considered while computing the amount of a given address.

The fix comes down to negotiate the proper protocol version between
the explorer and the electrum server. In case of Rostrum 1.4 is the max
proto version and the one that is needed to get a balance accounting
for all UTXOs. For Fulcrum 1.9.x 1.5 is the right proto version (prior
to that the get_balance is supposed to accept only 1 parameter).
That view rendering could pretty resource consuming when
the address we are looking for has a very long transaction
history.

I'm going to temporarely add a rate limit for that view that
take into account the number of requests for a given time interval
by the same IP address.

Once pagination would be provided by Eletrum servers (eg Rostrum)
for the used methods (eg get_history)  we could use it to reduce
the amount of load anda data involved and we will be able to remove
the rate limit on the page.
@lozanopo lozanopo changed the base branch from master to add-cross-check-to-transaction September 4, 2024 09: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.

5 participants