Skip to content

Commit

Permalink
tossz added
Browse files Browse the repository at this point in the history
  • Loading branch information
karasakalmt committed Dec 12, 2023
1 parent 8d59c86 commit d6e2120
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ defmodule LambdaEthereumConsensus.P2P.IncomingRequests.Handler do

defp handle_req("metadata/2/ssz_snappy", message_id, _message) do
# Values are hardcoded
with {:ok, payload} <-
Metadata.get_metadata()
|> Snappy.compress() do
with metadata <- Metadata.get_metadata(),
{:ok, payload} <- Ssz.to_ssz(metadata),
{:ok, payload} <- Snappy.compress(payload) do
Libp2pPort.send_response(message_id, <<0, 17>> <> payload)
end
end
Expand Down

0 comments on commit d6e2120

Please sign in to comment.