From 02ae6bfa23a89e05a1787affe478cd66dd330645 Mon Sep 17 00:00:00 2001 From: Danil Kovtonyuk Date: Tue, 2 Mar 2021 04:03:30 +1000 Subject: [PATCH] fix: maxReceived size --- package.json | 2 +- src/treeWatcher.js | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fc52b6f..0cad67c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "relay", - "version": "4.0.5", + "version": "4.0.6", "description": "Relayer for Tornado.cash privacy solution. https://tornado.cash", "scripts": { "server": "node src/server.js", diff --git a/src/treeWatcher.js b/src/treeWatcher.js index 7edaa0f..6fff7ab 100644 --- a/src/treeWatcher.js +++ b/src/treeWatcher.js @@ -7,7 +7,14 @@ const redis = new Redis(redisUrl) const ENSResolver = require('./resolver') const resolver = new ENSResolver() const Web3 = require('web3') -const web3 = new Web3(wsRpcUrl) +const web3 = new Web3( + new Web3.providers.WebsocketProvider(wsRpcUrl, { + clientConfig: { + maxReceivedFrameSize: 100000000, + maxReceivedMessageSize: 100000000, + }, + }), +) const MinerABI = require('../abis/mining.abi.json') let contract