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,
|
rpcUrl,
|
||||||
redisUrl,
|
redisUrl,
|
||||||
privateKey,
|
privateKey,
|
||||||
updateConfig,
|
|
||||||
swapAddress,
|
swapAddress,
|
||||||
minerAddress,
|
minerAddress,
|
||||||
gasLimits,
|
gasLimits,
|
||||||
instances,
|
instances,
|
||||||
tornadoServiceFee,
|
tornadoServiceFee,
|
||||||
miningServiceFee,
|
miningServiceFee
|
||||||
tornEthPrice,
|
|
||||||
} = require('./config')
|
} = require('./config')
|
||||||
const { TxManager } = require('tx-manager')
|
const { TxManager } = require('tx-manager')
|
||||||
const { Controller } = require('tornado-cash-anonymity-mining')
|
const { Controller } = require('tornado-cash-anonymity-mining')
|
||||||
@ -75,7 +73,6 @@ async function fetchTree() {
|
|||||||
async function start() {
|
async function start() {
|
||||||
web3 = new Web3(rpcUrl)
|
web3 = new Web3(rpcUrl)
|
||||||
txManager = new TxManager({ privateKey, rpcUrl })
|
txManager = new TxManager({ privateKey, rpcUrl })
|
||||||
updateConfig({ rewardAccount: txManager.address })
|
|
||||||
redisSubscribe.subscribe('treeUpdate', fetchTree)
|
redisSubscribe.subscribe('treeUpdate', fetchTree)
|
||||||
await fetchTree()
|
await fetchTree()
|
||||||
const provingKeys = {
|
const provingKeys = {
|
||||||
|
Loading…
Reference in New Issue
Block a user