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

Check the API for faucet transactions before fetching balance #898

Merged
merged 1 commit into from
Jan 15, 2022

Conversation

dguenther
Copy link
Member

Summary

The client balance command is particularly slow and uses a fair bit of CPU. Rather than checking the balance first every 5 seconds, we can check the API first to see if there are any new faucet transactions.

Testing Plan

Tested that faucet command fetches transactions from the API still. I didn't test with more than 50 transactions.

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and
what additional work is required, if any.

[ ] Yes
[x] No

@dguenther dguenther requested a review from a team as a code owner January 15, 2022 01:14
@NullSoldier NullSoldier merged commit 42126a5 into staging Jan 15, 2022
@NullSoldier NullSoldier deleted the postpone-faucet-balance branch January 15, 2022 01:19
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

Successfully merging this pull request may close these issues.

None yet

2 participants