Skip to content

Commit 2de70bf

Browse files
committed
Small fixe after renaming the ticker
1 parent 3802005 commit 2de70bf

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/lambda_ethereum_consensus/beacon/beacon_node.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ defmodule LambdaEthereumConsensus.Beacon.BeaconNode do
3636

3737
children =
3838
[
39-
{LambdaEthereumConsensus.Beacon.Ticker, [LambdaEthereumConsensus.Libp2pPort]},
39+
{LambdaEthereumConsensus.Ticker, [LambdaEthereumConsensus.Libp2pPort]},
4040
{LambdaEthereumConsensus.Libp2pPort, libp2p_args},
4141
{Task.Supervisor, name: PruneStatesSupervisor},
4242
{Task.Supervisor, name: PruneBlocksSupervisor},

lib/lambda_ethereum_consensus/validator/validator.ex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ defmodule LambdaEthereumConsensus.Validator do
1313
:payload_builder
1414
]
1515

16-
alias LambdaEthereumConsensus.Beacon.Clock
1716
alias LambdaEthereumConsensus.ForkChoice
1817
alias LambdaEthereumConsensus.Libp2pPort
1918
alias LambdaEthereumConsensus.P2P.Gossip
@@ -116,7 +115,7 @@ defmodule LambdaEthereumConsensus.Validator do
116115
|> maybe_build_payload(slot + 1)
117116
end
118117

119-
@spec handle_tick(Clock.logical_time(), state) :: state
118+
@spec handle_tick({Types.slot(), atom()}, state) :: state
120119
def handle_tick(_logical_time, %{validator: %{index: nil}} = state) do
121120
log_error("-1", "setup validator", "index not present for handle tick")
122121
state

lib/libp2p_port.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ defmodule LambdaEthereumConsensus.Libp2pPort do
777777
{slot, slot_third}
778778
end
779779

780-
defp log_new_slot({slot, _third}, {slot, _third}), do: :ok
780+
defp log_new_slot({slot, _third}, {slot, _another_third}), do: :ok
781781

782782
defp log_new_slot({_prev_slot, _thrid}, {slot, :first_third}) do
783783
# TODO: as with the previous function, this was copied from the Clock module.

0 commit comments

Comments
 (0)