Skip to content

Commit

Permalink
fix: update handle_tick and handle_head params
Browse files Browse the repository at this point in the history
  • Loading branch information
avilagaston9 committed Aug 12, 2024
1 parent d3d2eb2 commit c0478ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lambda_ethereum_consensus/validator/validator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ defmodule LambdaEthereumConsensus.Validator do
end

@spec handle_new_head(Types.slot(), Types.root(), state) :: state
def handle_new_head(slot, head_root, %{validator: %{index: nil}} = state) do
def handle_new_head(slot, head_root, %{index: nil} = state) do
log_error("-1", "setup validator", "index not present handle block",
slot: slot,
root: head_root
Expand All @@ -117,7 +117,7 @@ defmodule LambdaEthereumConsensus.Validator do
end

@spec handle_tick({Types.slot(), atom()}, state) :: state
def handle_tick(_logical_time, %{validator: %{index: nil}} = state) do
def handle_tick(_logical_time, %{index: nil} = state) do
log_error("-1", "setup validator", "index not present for handle tick")
state
end
Expand Down

0 comments on commit c0478ab

Please sign in to comment.