Skip to content

Commit

Permalink
fix: build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
karasakalmt committed Dec 6, 2023
1 parent dd8a1ec commit efa5a7d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/lambda_ethereum_consensus/p2p/incoming_requests/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit efa5a7d

Please sign in to comment.