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

Stats are not showing correct #162

Closed
CroBizz opened this issue Oct 12, 2021 · 3 comments
Closed

Stats are not showing correct #162

CroBizz opened this issue Oct 12, 2021 · 3 comments

Comments

@CroBizz
Copy link

CroBizz commented Oct 12, 2021

Hi I see that number of created wallets and balance is changing each time when I visit: https://1wallet.crazy.one/wallets

First time number of wallets when I visited site was 2681,after that I closed it and comed back for 2nd time and it was little bigger amount and 3nd time when I closed and opened wallet link it was again 2681 number of users and again lower balance then on 2nd site visit.

@polymorpher
Copy link
Owner

It relies on a Harmony Block Explorer API, which is supposed to be indexing and calculating the numbers in the background. They said they had some bug caching the numbers and keeping them consistent across nodes, and they will fix it some time soon. I will follow up, and fix it later using a caching server of my own if needed.

@hypnagonia
Copy link

explorer calculates sum of balances for a day
there's more than one api instances behind load balancer and each instance could have different cache expiration time
so yes values could slightly vary with every request
https://explorer-v2-api.hmny.io/v0/1wallet/metrics

i will ask devops to enable "sticky sessions" on the balancer

@polymorpher
Copy link
Owner

Stats are now cached for 2 hours locally. 71a0b26

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

No branches or pull requests

3 participants