Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-client: sending the same tx twice takes too much time #3271

Open
Albermonte opened this issue Feb 5, 2025 · 0 comments
Open

web-client: sending the same tx twice takes too much time #3271

Albermonte opened this issue Feb 5, 2025 · 0 comments

Comments

@Albermonte
Copy link
Member

Context:

In Nimiq Pay, we send the transaction from the cosigning server and from the app itself. We do this because cosigning is faster and we don't depend on the network connection speed of the app. But as it is possible that by some chance it might fail, we also send the same tx from the app to make sure that it has always been sent.
This leads to the app taking always more than 10 seconds to send the tx.

Causes:

As you can see in this Nimiq Playground the first tx is sent within 2 to ~10 seconds and the second one always takes >10 seconds

Consensus: established

Sender: NQ89 8KKB BSKT 6BNC JTH6 1ECS TC7C CM0Y B87V
Recipient: NQ62 P0QP M050 CY0L LS6V U8YK K59G RP6R HAE3

First tx took: 2151ms
Second tx took: 12071ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant