Skip to content

Commit

Permalink
Fix ETH Ropsten: websocket: read limit exceeded trezor#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 authored and jagdeep sidhu committed Dec 23, 2020
1 parent 5a2fff4 commit 0ec9c7a
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 @@ -35,6 +35,8 @@ prepare-sources:
@ [ -n "`ls /src 2> /dev/null`" ] || (echo "/src doesn't exist or is empty" 1>&2 && exit 1)
rm -rf $(BLOCKBOOK_SRC)
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 0ec9c7a

Please sign in to comment.