From 9ce6955c2aad4591921f3df4f1ea97c1cb665760 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Thu, 1 Sep 2022 22:23:33 +0200 Subject: [PATCH] Fix ETH Goerli Archive: websocket: read limit exceeded Geth sets wsMessageSizeLimit to 15M. However, Goerli contains blocks (e.g. 6109494) which require larger limit to fetch the debug_traceBlockByHash response. Fixed by a hacky way of modifying the geth source before the build of the project. Will submit PR to go-ethereum with a final fix. --- build/docker/bin/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/build/docker/bin/Makefile b/build/docker/bin/Makefile index ebe713e4..c73045ce 100644 --- a/build/docker/bin/Makefile +++ b/build/docker/bin/Makefile @@ -38,3 +38,4 @@ prepare-sources: mkdir -p $(BLOCKBOOK_BASE) cp -r /src $(BLOCKBOOK_SRC) cd $(BLOCKBOOK_SRC) && go mod download + sed -i 's/wsMessageSizeLimit\ =\ 15\ \*\ 1024\ \*\ 1024/wsMessageSizeLimit = 50 * 1024 * 1024/g' $(GOPATH)/pkg/mod/github.com/ethereum/go-ethereum*/rpc/websocket.go