-
Notifications
You must be signed in to change notification settings - Fork 65
apollo_l1_provider: change L1_BLOCK_TIME to be 12 seconds #10544
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
apollo_l1_provider: change L1_BLOCK_TIME to be 12 seconds #10544
Conversation
a046554 to
83769d8
Compare
7ac0ff3 to
d078dd5
Compare
sirandreww-starkware
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: 0 of 1 files reviewed, all discussions resolved
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.
Reviewable status: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @guy-starkware)
crates/apollo_l1_provider/src/l1_scraper.rs line 39 at r1 (raw file):
// TODO(guyn): make this a config parameter // Sensible lower bound. const L1_BLOCK_TIME: u64 = 12;
Where do we use it? What are the implications of this change? I see a comment that this is a sensible lower bound, shouldn't we have a few spares?
guy-starkware
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: 0 of 1 files reviewed, 1 unresolved discussion (waiting on @ShahakShama)
crates/apollo_l1_provider/src/l1_scraper.rs line 39 at r1 (raw file):
Previously, ShahakShama wrote…
Where do we use it? What are the implications of this change? I see a comment that this is a sensible lower bound, shouldn't we have a few spares?
Right now this is only used in the scraper's estimate of how many blocks "one and a half hours ago" should be (actually, the estimate is one hour, and we take 50% margin on that!).
It could be used in other places in the future.
The next PR makes this a config parameter.
In any case, putting the wrong number "as lower bound" could get us in trouble if the margin happens to need to be on the other side (for example, if we try to estimate "at least one hour" using this number is actually messing up our result, not adding margin to it).
Besides all this, I don't see why we should define a wrong constant.
d078dd5 to
e75824e
Compare
83769d8 to
84b928c
Compare
84b928c to
fc088af
Compare
e75824e to
babd4f8
Compare
fc088af to
0538ddb
Compare
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.
@ShahakShama reviewed 1 of 1 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @guy-starkware)

No description provided.