increase gas limit

This commit is contained in:
Danil Kovtonyuk 2021-03-10 04:13:51 +10:00
parent 215f2ad1e2
commit 66082a8fbc
3 changed files with 4 additions and 2 deletions

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

@ -20,7 +20,7 @@ module.exports = {
rewardAccount: process.env.REWARD_ACCOUNT,
tornadoGoerliProxy: '0x454d870a72e29d5E5697f635128D18077BD04C60',
gasLimits: {
[jobType.TORNADO_WITHDRAW]: 350000,
[jobType.TORNADO_WITHDRAW]: 390000,
[jobType.MINING_REWARD]: 455000,
[jobType.MINING_WITHDRAW]: 400000,
},

@ -211,6 +211,7 @@ async function getTxObject({ data }) {
value: data.args[5],
to: contract._address,
data: calldata,
gasLimit: gasLimits[data.type],
}
} else {
const method = data.type === jobType.MINING_REWARD ? 'reward' : 'withdraw'
@ -218,6 +219,7 @@ async function getTxObject({ data }) {
return {
to: minerContract._address,
data: calldata,
gasLimit: gasLimits[data.type],
}
}
}