Skip to content

feat: block start should not be before last eth finalized #61

@0xAleksaOpacic

Description

@0xAleksaOpacic

Description

In the current implementation, gadget start finalizing blocks by checking config and last finalized in db, and finds calculates from where to start.

Finalization should not happen for blocks which are already finalized it just does not make sense. This can be easily done by fetching the latest finalized block

The issue is that for local deployment we use anvil, which is simple ethereum node where every latest block is finalized, so if we enable this, then testing with local deployment would not work

DoD:

Create strategy how to do e2e tests, unit tests + local deployment if we add this

Metadata

Metadata

Assignees

No one assigned

    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