Skip to content

Commit

Permalink
Fix ETH Ropsten: websocket: read limit exceeded #490
Browse files Browse the repository at this point in the history
Geth sets maxRequestContentLength to 5M.
However, Ropsten contains blocks of largers size (for example 599281).
These which cannot be fetched using API.

Fixed by hacky way of modifying the geth source before
the build of the project.
Will submit PR to go-ethereum with final fix.
  • Loading branch information
martinboehm committed Dec 4, 2020
1 parent 248de3c commit 69d13e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/docker/bin/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ prepare-sources:
rm -rf $(BLOCKBOOK_SRC)
mkdir -p $(BLOCKBOOK_BASE)
cp -r /src $(BLOCKBOOK_SRC)
cd $(BLOCKBOOK_SRC) && go mod download
sed -i 's/maxRequestContentLength\ =\ 1024\ \*\ 1024\ \*\ 5/maxRequestContentLength = 1024 * 1024 * 20/g' $(GOPATH)/pkg/mod/github.com/ethereum/go-ethereum*/rpc/http.go

generate-data:
cd $(BLOCKBOOK_SRC) && packr clean && packr

0 comments on commit 69d13e0

Please sign in to comment.