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

Only fetch relevant transaction receipts #12

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

sveitser
Copy link
Collaborator

This should reduce the expected calls to infura from estimated 700k per day to something far less than that because we will only fetch tx receipts if the tx is relevant to the faucet.

@sveitser sveitser requested review from nomaxg and jbearer September 19, 2023 17:45
@sveitser sveitser marked this pull request as draft September 19, 2023 17:52
@sveitser
Copy link
Collaborator Author

I marked as draft because I realized we are not checking the tx status for the external incoming transfers. However, since after receiving the transfer, we check if the clients have sufficient balance before making it available, I think this should be fine.

@sveitser sveitser marked this pull request as ready for review September 19, 2023 17:56
@sveitser sveitser merged commit 6257f6e into main Sep 19, 2023
@sveitser sveitser deleted the ma/only-fetch-necessary-receipts branch September 19, 2023 18:26
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.

2 participants