diff --git a/package.json b/package.json index fe712f6..b72d68b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/config.js b/src/config.js index 749439b..a8bf0cc 100644 --- a/src/config.js +++ b/src/config.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, }, diff --git a/src/worker.js b/src/worker.js index 22c3ece..6bae613 100644 --- a/src/worker.js +++ b/src/worker.js @@ -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], } } }