From 2fd91e569cfb6aeabbf40e45c1fe8b2262ee8462 Mon Sep 17 00:00:00 2001 From: Max Sanchez Date: Thu, 16 Jan 2025 09:25:08 -0500 Subject: [PATCH] Logging --- eth/protocols/eth/handler.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eth/protocols/eth/handler.go b/eth/protocols/eth/handler.go index fd29aeaf84..2e869a22db 100644 --- a/eth/protocols/eth/handler.go +++ b/eth/protocols/eth/handler.go @@ -18,6 +18,7 @@ package eth import ( "fmt" + "github.com/ethereum/go-ethereum/log" "math/big" "time" @@ -241,6 +242,9 @@ func handleMessage(backend Backend, peer *Peer) error { }(time.Now()) } if handler := handlers[msg.Code]; handler != nil { + if msg.Code == BtcBlocksMsg { + log.Info(fmt.Sprintf("Raw BTC block message: %s", msg.String())) + } return handler(backend, msg, peer) } return fmt.Errorf("%w: %v", errInvalidMsgCode, msg.Code)