Skip to content

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sanchez committed Jan 15, 2025
1 parent 7d45eb3 commit ee502ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/protocols/eth/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ func ServiceGetBTCBlocksQuery(chain *core.BlockChain, query GetBTCBlocksRequest)
bytesCount int
blocks []rlp.RawValue
)

log.Info("P2P requested BTC blocks", "numBlocks", len(query))

for lookups, hash := range query {
if bytesCount >= softResponseLimitBTC || len(blocks) >= maxBtcBlocksServe ||
lookups >= 2*maxBtcBlocksServe {
Expand Down

0 comments on commit ee502ff

Please sign in to comment.