Skip to content

Conversation

@guy-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@guy-starkware guy-starkware marked this pull request as ready for review December 3, 2025 12:41
@guy-starkware guy-starkware force-pushed the guyn/l1provider/block_time_constant branch from a046554 to 83769d8 Compare December 7, 2025 13:19
@guy-starkware guy-starkware force-pushed the guyn/l1provider/historic_check_log_message branch from 7ac0ff3 to d078dd5 Compare December 7, 2025 13:19
Copy link
Contributor

@sirandreww-starkware sirandreww-starkware left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 0 of 1 files reviewed, all discussions resolved

Copy link
Collaborator

@ShahakShama ShahakShama left a 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?

Copy link
Contributor Author

@guy-starkware guy-starkware left a 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.

@guy-starkware guy-starkware force-pushed the guyn/l1provider/historic_check_log_message branch from d078dd5 to e75824e Compare December 8, 2025 10:05
@guy-starkware guy-starkware force-pushed the guyn/l1provider/block_time_constant branch from 83769d8 to 84b928c Compare December 8, 2025 10:05
@guy-starkware guy-starkware changed the base branch from guyn/l1provider/historic_check_log_message to graphite-base/10544 December 9, 2025 08:45
@guy-starkware guy-starkware force-pushed the guyn/l1provider/block_time_constant branch from 84b928c to fc088af Compare December 9, 2025 08:45
@guy-starkware guy-starkware changed the base branch from graphite-base/10544 to main-v0.14.1 December 9, 2025 08:45
@guy-starkware guy-starkware force-pushed the guyn/l1provider/block_time_constant branch from fc088af to 0538ddb Compare December 10, 2025 12:23
Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

:lgtm:

@ShahakShama reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @guy-starkware)

Merged via the queue into main-v0.14.1 with commit 5ad25ee Dec 10, 2025
32 of 36 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants