From 6d9cf624b315b9aac0bace070582f954009718ab Mon Sep 17 00:00:00 2001 From: antonis19 Date: Fri, 28 Mar 2025 13:59:09 +0100 Subject: [PATCH] remove warning logs --- eth/protocols/eth/handlers.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/eth/protocols/eth/handlers.go b/eth/protocols/eth/handlers.go index 874932ef7d..fda650da1c 100644 --- a/eth/protocols/eth/handlers.go +++ b/eth/protocols/eth/handlers.go @@ -131,8 +131,6 @@ func serviceNonContiguousBlockHeaderQuery(chain *core.BlockChain, query *GetBloc current := query.Origin.Number ancestor := current - (query.Skip + 1) if ancestor >= current { // check for underflow - infos, _ := json.MarshalIndent(peer.Peer.Info(), "", " ") - peer.Log().Warn("GetBlockHeaders skip underflow attack", "current", current, "skip", query.Skip, "ancestor", ancestor, "attacker", infos) unknown = true } else { query.Origin.Number = ancestor @@ -142,8 +140,6 @@ func serviceNonContiguousBlockHeaderQuery(chain *core.BlockChain, query *GetBloc current := query.Origin.Number next := current + query.Skip + 1 if next <= current { // check for overflow - infos, _ := json.MarshalIndent(peer.Peer.Info(), "", " ") - peer.Log().Warn("GetBlockHeaders skip overflow attack", "current", current, "skip", query.Skip, "next", next, "attacker", infos) unknown = true } else { query.Origin.Number = next