mysteriumnetwork / mysterium-vpn-mobile

Mobile client for Mysterium Network
GNU General Public License v3.0
206 stars 48 forks source link

Polygon MYST top-up takes very long to appear #715

Closed Donatas-MN closed 1 year ago

Donatas-MN commented 1 year ago

Steps to reproduce:

  1. Use either Desktop or Mobile app to top-up Polygon MYST.
  2. Send MYST to required channel address.
  3. Notice that it takes very long for MYST to appear in https://hermes3.mysterium.network/api/v1/data/consumer/0xc603e2a1739eb9288eb4985e74acbd80fbd10b71 after successful transaction.

It also looks like that restarting app helps to get the balance.

Tasks:

Guillembonet commented 1 year ago

Yes, it takes a bit, but node is able to refresh the balance using blockchain data and it works well. You should use the /identities/{identity}/balance/refresh endpoint to refresh it (note that it also has an internal cache of a minute, so it only loads once a minute if you call it repeatedly). For mobile the binding is: ForceBalanceUpdate.

Tested the following workflow:

  1. Send MYST to required channel address.
  2. Wait for tx to be mined
  3. Call the mentioned endpoint
  4. See balance instantly