mirror of
https://github.com/tornadocash/tornado-relayer
synced 2024-02-02 15:04:06 +01:00
reduce gas limits
This commit is contained in:
parent
0f8d1cf010
commit
fe98799786
@ -20,8 +20,8 @@ module.exports = {
|
||||
rewardAccount: process.env.REWARD_ACCOUNT,
|
||||
gasLimits: {
|
||||
[jobType.TORNADO_WITHDRAW]: 350000,
|
||||
[jobType.MINING_REWARD]: 800000,
|
||||
[jobType.MINING_WITHDRAW]: 800000,
|
||||
[jobType.MINING_REWARD]: 455000,
|
||||
[jobType.MINING_WITHDRAW]: 400000,
|
||||
},
|
||||
minimumBalance: 1000000000000000000,
|
||||
minimumBalance: '1000000000000000000',
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ async function main() {
|
||||
const balance = await web3.eth.getBalance(address)
|
||||
|
||||
if (toBN(balance).lt(toBN(minimumBalance))) {
|
||||
throw new Error(`Not enough balance, less than ${fromWei(minimumBalance.toString())} ETH`)
|
||||
throw new Error(`Not enough balance, less than ${fromWei(minimumBalance)} ETH`)
|
||||
}
|
||||
|
||||
await redis.hset('health', { status: true, error: '' })
|
||||
|
Loading…
Reference in New Issue
Block a user