oasis-wallet-web icon indicating copy to clipboard operation
oasis-wallet-web copied to clipboard

Pending transactions

Open lubej opened this issue 1 month ago • 3 comments

Description

This PR addresses https://github.com/oasisprotocol/oasis-wallet-web/issues/1942. So the initial proposition was that we should decrease the time to fetch transactions. Which in my opinion does not solve the core issue, of not showing pending transaction. So this PR introduces a list of pending transactions, which should mitigate original issue in some way.

I wanted to introduce polling for each of the transactions, that would refresh the state of each pending transaction on each new block. But that introduces a state, where balance could be out of sync with the actual transaction history - also it would need a synchronous clock - which is also a hustle to implement, as the right approach IMO would be to refresh the balance/pending txs on each new block. oasis.client.NodeInternal function consensusWatchBlocks, would be ideal for that case, but does not seems to work, either there is an issue with TS client implementation or the grpc node does not support the method.

Resources

image

lubej avatar May 27 '24 06:05 lubej