mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-05-09 10:05:14 -04:00
minor cleanup
This commit is contained in:
parent
4a4cfc5d48
commit
6b9acb8c6b
2 changed files with 4 additions and 7 deletions
|
@ -30,12 +30,9 @@ async function fetchTree() {
|
|||
}
|
||||
|
||||
async function start() {
|
||||
web3 = new Web3(rpcUrl, null, { transactionConfirmationBlocks: 1 })
|
||||
const account = web3.eth.accounts.privateKeyToAccount('0x' + privateKey)
|
||||
web3.eth.accounts.wallet.add('0x' + privateKey)
|
||||
web3.eth.defaultAccount = account.address
|
||||
updateConfig({ rewardAccount: account.address })
|
||||
web3 = new Web3(rpcUrl)
|
||||
txManager = new TxManager({ privateKey, rpcUrl })
|
||||
updateConfig({ rewardAccount: txManager.address })
|
||||
queue.process(process)
|
||||
redisSubscribe.subscribe('treeUpdate', fetchTree)
|
||||
await fetchTree()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue