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

Fix gas fetching, improve tests #225

Merged
merged 5 commits into from
Apr 3, 2024
Merged

Fix gas fetching, improve tests #225

merged 5 commits into from
Apr 3, 2024

Conversation

Siegrift
Copy link
Collaborator

@Siegrift Siegrift commented Apr 1, 2024

Closes #218

Rationale

Here we've decided to make the gas fetching part of the "main" (update feeds) loop. The problem is that the gas was fetched from the RPC only before an update transaction was submitted.

Now it's fetched during the processing of each batch.

@Siegrift Siegrift self-assigned this Apr 1, 2024
@Siegrift Siegrift force-pushed the fix-gas-fetching branch 2 times, most recently from 79e8778 to 2c4ff6a Compare April 1, 2024 22:12
@Siegrift Siegrift requested review from vponline and bdrhn9 April 1, 2024 22:16
@Siegrift Siegrift changed the title Fix gas fetching Fix gas fetching, improve tests Apr 1, 2024
Copy link
Contributor

@vponline vponline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, noticed one possible typo

src/gas-price/gas-price.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@bdrhn9 bdrhn9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I liked the optimizations :-) thanks for addressing them 🔥

src/gas-price/gas-price.ts Outdated Show resolved Hide resolved
src/update-feeds-loops/update-feeds-loops.ts Show resolved Hide resolved
Base automatically changed from fix-gas-scaling to main April 3, 2024 10:25
@Siegrift Siegrift merged commit 43a76a1 into main Apr 3, 2024
4 checks passed
@Siegrift Siegrift deleted the fix-gas-fetching branch April 3, 2024 11:25
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.

Revisit how gas prices for sanitization are fetched
3 participants