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

Add intermittent gasPrice Buffer Logic #690

Merged
merged 2 commits into from
Nov 14, 2022
Merged

Add intermittent gasPrice Buffer Logic #690

merged 2 commits into from
Nov 14, 2022

Conversation

Nana-EC
Copy link
Collaborator

@Nana-EC Nana-EC commented Nov 12, 2022

Signed-off-by: Nana Essilfie-Conduah nana@swirldslabs.com

Description:
During long lived operations of the relay it's possible for the relay to observe a change int eh gasPrice calculation needed by submitted transactions.
As a result some checks are often 1 tiny bar off

  • add logic to provide a buffer for gas price prechecks - default to 1 tinybar
  • add tests
  • updated helm chart with default value

Related issue(s):

Fixes #678

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Nana Essilfie-Conduah <nana@swirldslabs.com>
@Nana-EC Nana-EC added enhancement New feature or request P1 labels Nov 12, 2022
@Nana-EC Nana-EC added this to the 0.12.0 milestone Nov 12, 2022
@Nana-EC Nana-EC self-assigned this Nov 12, 2022
@Nana-EC Nana-EC requested a review from georgi-l95 November 12, 2022 03:02
georgi-l95
georgi-l95 previously approved these changes Nov 13, 2022
Copy link
Collaborator

@georgi-l95 georgi-l95 left a comment

Choose a reason for hiding this comment

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

LGTM! nit: It might be a good idea to add this new variable to README.md

Signed-off-by: Nana Essilfie-Conduah <nana@swirldslabs.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov-commenter
Copy link

Codecov Report

Base: 70.87% // Head: 70.88% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (1843eab) compared to base (f162a63).
Patch coverage: 75.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #690      +/-   ##
==========================================
+ Coverage   70.87%   70.88%   +0.01%     
==========================================
  Files          16       16              
  Lines        1188     1192       +4     
  Branches      214      216       +2     
==========================================
+ Hits          842      845       +3     
  Misses        286      286              
- Partials       60       61       +1     
Impacted Files Coverage Δ
packages/relay/src/lib/precheck.ts 88.88% <75.00%> (-0.73%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@georgi-l95 georgi-l95 left a comment

Choose a reason for hiding this comment

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

LG

@Nana-EC Nana-EC merged commit 6e32af0 into main Nov 14, 2022
@Nana-EC Nana-EC deleted the 678-gas-price-buffer branch November 14, 2022 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P1
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

hardhat deploy plugin fails on testnet relay
3 participants