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", "name": "relay",
"version": "4.0.0", "version": "4.0.1",
"description": "Relayer for Tornado.cash privacy solution. https://tornado.cash", "description": "Relayer for Tornado.cash privacy solution. https://tornado.cash",
"scripts": { "scripts": {
"server": "node src/server.js", "server": "node src/server.js",

View File

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