mirror of
https://github.com/tornadocash/tornado-relayer
synced 2024-02-02 15:04:06 +01:00
fix: timeout provider
This commit is contained in:
parent
68e44f9b38
commit
6cc62e7d94
@ -3,9 +3,11 @@ const { redisUrl, offchainOracleAddress, oracleRpcUrl } = require('./config')
|
|||||||
const { getArgsForOracle, setSafeInterval } = require('./utils')
|
const { getArgsForOracle, setSafeInterval } = require('./utils')
|
||||||
const redis = new Redis(redisUrl)
|
const redis = new Redis(redisUrl)
|
||||||
const Web3 = require('web3')
|
const Web3 = require('web3')
|
||||||
const web3 = new Web3(oracleRpcUrl, {
|
const web3 = new Web3(
|
||||||
timeout: 200000, // ms
|
new Web3.providers.HttpProvider(oracleRpcUrl, {
|
||||||
})
|
timeout: 200000, // ms
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
|
||||||
const offchainOracleABI = require('../abis/OffchainOracle.abi.json')
|
const offchainOracleABI = require('../abis/OffchainOracle.abi.json')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user