Fix ETH Ropsten: websocket: read limit exceeded #490
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.pull/530/head
parent
248de3cb34
commit
69d13e0688
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue