Skip to content

sync_gas_prices gets stuck on historical data, ignoring subscribed updates #3196

@vbar

Description

@vbar

The sync_gas_prices function often fails to update L1GasPriceProvider, because L1GasPriceProvider expects its samples to be added in sequential block order, and sync_gas_prices tries twice, possibly with a gap in between:

2026-01-20T07:54:25.042247Z  WARN pathfinder_lib::state::sync::l1: Failed to add gas price sample block=24274626 error=Non-sequential block: expected 24274546, got 24274626
2026-01-20T07:54:37.842099Z  WARN pathfinder_lib::state::sync::l1: Failed to add gas price sample block=24274627 error=Non-sequential block: expected 24274546, got 24274627
2026-01-20T07:54:48.901591Z  WARN pathfinder_lib::state::sync::l1: Failed to add gas price sample block=24274628 error=Non-sequential block: expected 24274546, got 24274628

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions