fix: maxReceived size

This commit is contained in:
Danil Kovtonyuk 2021-03-02 04:03:30 +10:00 committed by nik
parent 80f6ab4f9d
commit 02ae6bfa23
2 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "relay", "name": "relay",
"version": "4.0.5", "version": "4.0.6",
"description": "Relayer for Tornado.cash privacy solution. https://tornado.cash", "description": "Relayer for Tornado.cash privacy solution. https://tornado.cash",
"scripts": { "scripts": {
"server": "node src/server.js", "server": "node src/server.js",

View File

@ -7,7 +7,14 @@ const redis = new Redis(redisUrl)
const ENSResolver = require('./resolver') const ENSResolver = require('./resolver')
const resolver = new ENSResolver() const resolver = new ENSResolver()
const Web3 = require('web3') 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') const MinerABI = require('../abis/mining.abi.json')
let contract let contract