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

VRF-367 Fix use of getRoundRobinAddress in VRF listener #8653

Merged
merged 19 commits into from
Mar 8, 2023
Merged

Conversation

vreff
Copy link
Contributor

@vreff vreff commented Mar 8, 2023

Moves the call to GetRoundRobinAddress from outside the pipeline simulation to right before the SqlxTransaction callback function, as to make round robin more accurate in-practice.
Open questions:

  • Do we ever plan to specify different key-specific gas limits for VRFv2? Currently all "fromAddresses" get the same gas price limits.
  • Do we want to move the GetRoundRobinAddress call to be inside the SqlxTransaction call? Or is it acceptable being right before it?

@vreff vreff requested a review from a team as a code owner March 8, 2023 19:16
@vreff vreff requested review from makramkd and jinhoonbang March 8, 2023 19:17
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2023

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

@makramkd
Copy link
Contributor

makramkd commented Mar 8, 2023

Do we ever plan to specify different key-specific gas limits for VRFv2? Currently all "fromAddresses" get the same gas price limits.

All key-specific max gas price configurations MUST be the same and the gasLanePrice job spec parameter can be used to enforce that (see

func CheckFromAddressMaxGasPrices(jb job.Job, cfg Config) (err error) {
)

Do we want to move the GetRoundRobinAddress call to be inside the SqlxTransaction call? Or is it acceptable being right before it?

I think moving the GetRoundRobinAddress call to be right before the CreateEthTransaction call should be fine, even if it's inside the Transaction call for sqlx.

core/services/vrf/listener_v2.go Show resolved Hide resolved
core/services/vrf/listener_v2.go Show resolved Hide resolved
core/services/vrf/listener_v2.go Show resolved Hide resolved
@vreff vreff requested review from makramkd and a team March 8, 2023 20:03
makramkd
makramkd previously approved these changes Mar 8, 2023
@vreff vreff requested a review from a team as a code owner March 8, 2023 21:52
@vreff vreff force-pushed the VRF-367 branch 2 times, most recently from d0c2879 to e336dbc Compare March 8, 2023 22:46
@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition B Maintainability Rating on New Code (is worse than A)
Failed condition 76.5% 76.5% Coverage on New Code (is less than 90%)
Failed condition 5.9% 5.88% Duplicated Lines (%) on New Code (is greater than 3%)
Failed condition 5.46% Technical Debt Ratio on New Code (is greater than 4%)

See analysis details on SonarQube

Fix issues before they fail your Quality Gate with SonarLint SonarLint in your IDE.

@jinhoonbang jinhoonbang merged commit d003932 into develop Mar 8, 2023
@jinhoonbang jinhoonbang deleted the VRF-367 branch March 8, 2023 23:44
jinhoonbang pushed a commit that referenced this pull request Mar 8, 2023
* VRF-367 Fix use of getRoundRobinAddress in VRF listener

* Move round robin call to inside SQLX callback

* Add empty slice check

* Add comments

* Revert "Move round robin call to inside SQLX callback"

This reverts commit 8a21518.

* Move fromAddress validation to validate.go

* Update job spec tests

* Revert "Move fromAddress validation to validate.go"

This reverts commit 28d0279.

* Remove specs test changes

* Fix nit

* Fix integration tst

* Revert "Revert "Move fromAddress validation to validate.go""

This reverts commit b8b2a22.

* Adjust validation

* Fix integration test model

* Fix other integration test

* Adjust integration test

* Fix lint
chainchad added a commit that referenced this pull request Mar 9, 2023
…nd-robin-address-fix

VRF-367 Fix use of getRoundRobinAddress in VRF listener (#8653)
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.

3 participants