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.
This commit is contained in:
Martin Boehm 2022-09-01 22:23:33 +02:00 committed by Martin
parent 60df986fb8
commit 9ce6955c2a

View File

@ -38,3 +38,4 @@ prepare-sources:
mkdir -p $(BLOCKBOOK_BASE) mkdir -p $(BLOCKBOOK_BASE)
cp -r /src $(BLOCKBOOK_SRC) cp -r /src $(BLOCKBOOK_SRC)
cd $(BLOCKBOOK_SRC) && go mod download 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