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

Avoid calling z_getoperationstatus so often #195

Open
leto opened this issue Sep 5, 2020 · 0 comments
Open

Avoid calling z_getoperationstatus so often #195

leto opened this issue Sep 5, 2020 · 0 comments

Comments

@leto
Copy link
Member

leto commented Sep 5, 2020

Currently z_getoperationstatus is a potentially expensive operation. When a ztx is in the process of creation, z_getoperationstatus will block, waiting until the ztx is submitted to the mempool to return data.

The SD GUI constantly calls z_getoperationstatus and throws away any errors, which means it's constantly bombarding the full node with these calls if hushd is spending minutes on a complex tx.

This whole process is generally wasteful and we should be smarter about how and when we call this RPC. Using an exponential backoff instead of a static polling interval might improve performance and UI/UX

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