namada icon indicating copy to clipboard operation
namada copied to clipboard

Wrong shielded balance in query

Open grarco opened this issue 1 year ago • 1 comments

If the shielded context is in a speculative state, the call to query the shielded balances will most probably return a wrong value.

A first workaround could be to print a line in the client to warn the user about this and ask them to fetch again to see the updated balances.

A better approach would be to address #2593 and update the shielded context only if the transaction is successful: in this case the response we'd get from the query would be correct.

grarco avatar Jun 28 '24 10:06 grarco

Let's make sure to note this w.r.t. shielded sync @batconjurer @sug0

cwgoes avatar Aug 20 '24 09:08 cwgoes