What can clients do to best handle the API not showing mempool txs issue? #1727
Replies: 2 comments 14 replies
-
It seems like the key question here is whether we can improve nonce value setting on the client-side by tracking all recent transactions as submitted to the API on the client-side, in the scenario that the API doesn't return any information about these transactions at any point after submission. I've been presuming with #1715 that this would be helpful, since the client could keep upping the nonce consistently with the combination of client-side data (for new transactions placed in "submitted" state per this discussion) and server-side data (for previous transactions). @aulneau appears to have the same idea with #1726. Note that this would help only users of the same wallet installation, since obviously if they go to another one, the cached state there won't help with nonce calculations on the client-side. I presume, however, that most users affected by the API propagation issues are facing them only within the context of a single installation. However, @yknl and @kyranjamie appear doubtful this will help and might even exacerbate issues with nonce setting. Perhaps we should spell out some particular scenarios in which this would get us in trouble? |
Beta Was this translation helpful? Give feedback.
-
While the API isn't working properly, we should to communicate to our users that the API is experiencing problems. This could be achieved by implementing a wallet instability message, similarly to how is described in #1411 |
Beta Was this translation helpful? Give feedback.
-
Opening this to discuss what wallet clients can do to best handle the API issues described in https://github.com/hirosystems/devops/issues/797, where newly broadcast transactions don't appear in the mempool
cc/ @yknl, author of Xverse wallet
Beta Was this translation helpful? Give feedback.
All reactions