mirror of
https://github.com/tornadocash/tornado-relayer
synced 2024-02-02 15:04:06 +01:00
fix worker
This commit is contained in:
parent
0fcc4cf60d
commit
ed3fceaadc
@ -16,14 +16,12 @@ const {
|
||||
rpcUrl,
|
||||
redisUrl,
|
||||
privateKey,
|
||||
updateConfig,
|
||||
swapAddress,
|
||||
minerAddress,
|
||||
gasLimits,
|
||||
instances,
|
||||
tornadoServiceFee,
|
||||
miningServiceFee,
|
||||
tornEthPrice,
|
||||
miningServiceFee
|
||||
} = require('./config')
|
||||
const { TxManager } = require('tx-manager')
|
||||
const { Controller } = require('tornado-cash-anonymity-mining')
|
||||
@ -75,7 +73,6 @@ async function fetchTree() {
|
||||
async function start() {
|
||||
web3 = new Web3(rpcUrl)
|
||||
txManager = new TxManager({ privateKey, rpcUrl })
|
||||
updateConfig({ rewardAccount: txManager.address })
|
||||
redisSubscribe.subscribe('treeUpdate', fetchTree)
|
||||
await fetchTree()
|
||||
const provingKeys = {
|
||||
|
Loading…
Reference in New Issue
Block a user