Skip to content

Commit

Permalink
Add a TODO for chain agnostic finality filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Apr 15, 2024
1 parent 735b8ac commit 9ff08d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/services/relay/evm/dsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ type FinalityFilter struct {
}

func NewFinalityFilter(filter *query.ConfirmationsPrimitive) (query.Expression, error) {
// TODO chain agnostic confidence levels that map to evm finality
switch filter.ConfirmationLevel {
case query.Finalized:
return query.Expression{Primitive: &FinalityFilter{evmtypes.Finalized}}, nil
Expand Down

0 comments on commit 9ff08d4

Please sign in to comment.