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

feat: allows reorg detectors configure the what kind of block is a finalized block #180

Merged

Conversation

joanestebanr
Copy link
Contributor

@joanestebanr joanestebanr commented Feb 4, 2025

Fixes #176

Description

  • Reorg detector allow to configure the what kind of block is a finalized block (ReorgDetectorLX.FinalizedBlock)
  • Syncers use finalizedBlock configuration from reorgDetector
  • Fix e2e test for bridgesyncer that sometimes fails because a forced reorg affect to a finalized block

Configuration

[ReorgDetectorL1]
DBPath = "{{PathRWData}}/reorgdetectorl1.sqlite"
FinalizedBlock="FinalizedBlock"

[ReorgDetectorL2]
DBPath = "{{PathRWData}}/reorgdetectorl2.sqlite"
FinalizedBlock="LatestBlock"

@joanestebanr joanestebanr self-assigned this Feb 4, 2025
@joanestebanr joanestebanr changed the title feat: wip feat: allows reorg detectors configure the what kind of block is a finalized block Feb 5, 2025
@joanestebanr joanestebanr force-pushed the feature/syncer_blockfinality_configured_reorgdetector_176 branch from ca91c0a to a32c43c Compare February 5, 2025 10:52
@joanestebanr joanestebanr marked this pull request as ready for review February 5, 2025 16:26
reorgdetector/config.go Show resolved Hide resolved
reorgdetector/reorgdetector.go Outdated Show resolved Hide resolved
reorgdetector/config.go Outdated Show resolved Hide resolved
bridgesync/e2e_test.go Outdated Show resolved Hide resolved
reorgdetector/config.go Show resolved Hide resolved
reorgdetector/reorgdetector.go Outdated Show resolved Hide resolved
sync/evmdriver.go Outdated Show resolved Hide resolved
@joanestebanr joanestebanr merged commit 270f6bc into develop Feb 6, 2025
11 checks passed
@joanestebanr joanestebanr deleted the feature/syncer_blockfinality_configured_reorgdetector_176 branch February 6, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants