helium / blockchain-http

An http API for the helium blockchain database
https://helium.com
Apache License 2.0
47 stars 18 forks source link

Account Response Incorrect Balance Values #414

Closed alexbuczynsky closed 2 years ago

alexbuczynsky commented 2 years ago

Hello! I discovered what I believe is a bug on retrieving the account DTO, where the balance reflected is not always the most current balance, but a balance from a previous snapshot in time. My hunch is this is due to some caching mechanism for load balancing.

I started to notice it after the DDOS attack this past week. Another assumption is that something introduced this caching at that time.

The discovery was found in a home assistant integration that uses the public API to retrieve the account balance and aggregate your earnings over the day based on COV. https://github.com/rsnodgrass/hass-helium/issues/22

Details on the exact issue I am seeing are found in my comment on that issue: https://github.com/rsnodgrass/hass-helium/issues/22#issuecomment-1052137955

densone commented 2 years ago

Replication was stuck on one of the follower databases. This has now been repaired and will be caught up very quickly. Thanks for your report.

alexbuczynsky commented 2 years ago

Great! Thanks for the quick response.