diff --git a/lib/lambda_ethereum_consensus/p2p/incoming_requests/handler.ex b/lib/lambda_ethereum_consensus/p2p/incoming_requests/handler.ex index 2462bda4c..0c875de78 100644 --- a/lib/lambda_ethereum_consensus/p2p/incoming_requests/handler.ex +++ b/lib/lambda_ethereum_consensus/p2p/incoming_requests/handler.ex @@ -2,10 +2,11 @@ defmodule LambdaEthereumConsensus.P2P.IncomingRequests.Handler do @moduledoc """ This module handles Req/Resp domain requests. """ - require Logger - alias LambdaEthereumConsensus.{Libp2pPort, P2P} - alias LambdaEthereumConsensus.Store.BlockStore + alias LambdaEthereumConsensus.ForkChoice.Store + alias LambdaEthereumConsensus.Store.BlockStore + alias LambdaEthereumConsensus.{Libp2pPort, P2P} + require Logger # This is the `ForkDigest` for mainnet in the capella fork # TODO: compute this at runtime @@ -30,8 +31,7 @@ defmodule LambdaEthereumConsensus.P2P.IncomingRequests.Handler do :ok | :not_implemented | {:error, binary()} defp handle_req("status/1/ssz_snappy", message_id, message) do with <<84, snappy_status::binary>> <- message, - {:ok, current_status} <- - Store.get_current_status_message(), + {:ok, current_status} <- Store.get_current_status_message(), {:ok, ssz_status} <- Snappy.decompress(snappy_status), {:ok, status} <- Ssz.from_ssz(ssz_status, SszTypes.StatusMessage), status