Skip to content

Commit

Permalink
fixed a minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
h3lio5 committed Nov 30, 2023
1 parent a0b7c23 commit fd2b09e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,12 @@ defmodule LambdaEthereumConsensus.P2P.IncomingRequests.Handler do

count = min(count, ChainSpec.get("MAX_REQUEST_BLOCKS"))

"[Received BlocksByRoot Request] requested #{count} number of blocks"
|> Logger.info()

blocks =
body
|> Enum.slice(0..(count - 1))
|> Enum.map(&BlockStore.get_block/1)

response_chunk =
Expand Down

0 comments on commit fd2b09e

Please sign in to comment.