-
Notifications
You must be signed in to change notification settings - Fork 65
apollo_gateway: add config for min_gas_price_precentage for threshold #7720
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
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
39f2fe8 to
cc35ba1
Compare
80b990c to
31930dc
Compare
cc35ba1 to
6c23d77
Compare
31930dc to
89e5442
Compare
6c23d77 to
55fbb6d
Compare
ayeletstarkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 4 files at r1, all commit messages.
Reviewable status: 1 of 4 files reviewed, 1 unresolved discussion (waiting on @alonh5)
crates/apollo_gateway/src/config.rs line 176 at r2 (raw file):
pub versioned_constants_overrides: VersionedConstantsOverrides, // Minimum gas price as percentage of threshold to accept transactions. pub min_gas_price_precentage: u8, // E.g., 80 to require 80% of threshold.
Consider using 0.8 instead of 80 to remove the need for percentage-to-ratio conversion.
ArniStarkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 4 files reviewed, 1 unresolved discussion (waiting on @alonh5 and @ayeletstarkware)
crates/apollo_gateway/src/config.rs line 176 at r2 (raw file):
Previously, ayeletstarkware (Ayelet Zilber) wrote…
Consider using
0.8instead of80to remove the need for percentage-to-ratio conversion.
But then the type is a float.
We hate float.
alonh5
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks good. Did we calculate what the percentage we want is? We should probably think of how much percentage the price could move in ~10 blocks, and have that be the threshold.
Reviewed 2 of 4 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ayeletstarkware)
ayeletstarkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)
89e5442 to
0bcb723
Compare
55fbb6d to
a71eb8f
Compare
|
Apparently, the most the gas price changes between blocks is by a factor of If |
ShahakShama
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @ArniStarkware)
crates/apollo_gateway/src/config.rs line 176 at r3 (raw file):
pub versioned_constants_overrides: VersionedConstantsOverrides, // Minimum gas price as percentage of threshold to accept transactions. pub min_gas_price_percentage: u8, // E.g., 80 to require 80% of threshold.
Why not float?
ArniStarkware
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! all files reviewed, all discussions resolved (waiting on @ArniStarkware)
crates/apollo_gateway/src/config.rs line 176 at r3 (raw file):
Previously, ShahakShama wrote…
Why not float?
https://reviewable.io/reviews/starkware-libs/sequencer/7720#-OU9o9IODkWi6zwWu9-K
Lior hates floats.
0bcb723 to
b047f5b
Compare
a71eb8f to
ac6f956
Compare
ac6f956 to
b01a6bd
Compare
b047f5b to
843f3b1
Compare

No description provided.