From e3fb7691564fe8c4b2c9af32072c7082f333f27a Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Fri, 15 Mar 2024 10:21:13 +0000 Subject: [PATCH] fixes --- lib/gethfork/rpc/json.go | 1 + lib/gethfork/rpc/server.go | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/gethfork/rpc/json.go b/lib/gethfork/rpc/json.go index c4f1821aef..9634006d3a 100644 --- a/lib/gethfork/rpc/json.go +++ b/lib/gethfork/rpc/json.go @@ -225,6 +225,7 @@ func (c *jsonCodec) readBatch() (messages []*jsonrpcMessage, batch bool, err err if err := c.decode(&rawmsg); err != nil { return nil, false, err } + fmt.Printf("MSG: %s\n", rawmsg) messages, batch = parseMessage(rawmsg) for i, msg := range messages { if msg == nil { diff --git a/lib/gethfork/rpc/server.go b/lib/gethfork/rpc/server.go index 30f6787726..3810f64b31 100644 --- a/lib/gethfork/rpc/server.go +++ b/lib/gethfork/rpc/server.go @@ -149,9 +149,6 @@ func (s *Server) serveSingleRequest(ctx context.Context, codec ServerCodec) { if err != io.EOF { resp := errorMessage(&invalidMessageError{"parse error"}) fmt.Printf(">> Parse error %s. requests: %v\n", err, reqs) - for _, req := range reqs { - fmt.Printf(">> request: %s\n", req) - } codec.writeJSON(ctx, resp, true) } return