fix: default rpc for gas price oracle

This commit is contained in:
Nik Dement'ev 2021-01-12 13:20:54 +03:00 committed by Alexey Pertsev
parent 06e18dda28
commit 37d9cfedfa
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "relay",
"version": "4.0.0",
"version": "4.0.1",
"description": "Relayer for Tornado.cash privacy solution. https://tornado.cash",
"scripts": {
"server": "node src/server.js",

View File

@ -21,6 +21,7 @@ const {
privateKey,
gasLimits,
instances,
oracleRpcUrl,
tornadoServiceFee,
miningServiceFee,
} = require('./config')
@ -40,7 +41,7 @@ let minerContract
let proxyContract
const redis = new Redis(redisUrl)
const redisSubscribe = new Redis(redisUrl)
const gasPriceOracle = new GasPriceOracle({ defaultRpc: httpRpcUrl })
const gasPriceOracle = new GasPriceOracle({ defaultRpc: oracleRpcUrl })
async function fetchTree() {
const elements = await redis.get('tree:elements')