fetch gasPrice and rates for testnets for better testing during dev
This commit is contained in:
parent
db6a47f4fb
commit
ab088a0855
@ -2,7 +2,7 @@
|
||||
"name": "relay",
|
||||
"version": "1.0.0",
|
||||
"description": "Relayer for Tornado mixer. https://tornado.cash",
|
||||
"main": "index.js",
|
||||
"main": "src/index.js",
|
||||
"scripts": {
|
||||
"start": "node src/index.js",
|
||||
"eslint": "npx eslint --ignore-path .gitignore .",
|
||||
|
@ -34,12 +34,9 @@ app.get('/status', function (req, res) {
|
||||
app.post('/relay', relayController)
|
||||
|
||||
app.listen(port || 8000)
|
||||
|
||||
if (Number(netId) === 1) {
|
||||
console.log('Gas price oracle started.')
|
||||
fetcher.fetchGasPrice()
|
||||
fetcher.fetchPrices()
|
||||
}
|
||||
console.log('Gas price oracle started.')
|
||||
fetcher.fetchGasPrice()
|
||||
fetcher.fetchPrices()
|
||||
|
||||
console.log('Relayer started on port', port || 8000)
|
||||
console.log(`relayerAddress: ${web3.eth.defaultAccount}`)
|
||||
|
Loading…
Reference in New Issue
Block a user