mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2024-12-25 07:39:32 -05:00
fix: default rpc for gas price oracle
This commit is contained in:
parent
06e18dda28
commit
37d9cfedfa
@ -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",
|
||||||
|
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user