mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-07-11 00:59:25 -04:00
clear errors on start
This commit is contained in:
parent
e5dd4b465f
commit
526f1889f9
2 changed files with 6 additions and 1 deletions
|
@ -84,10 +84,14 @@ const readRelayerErrors = async redis => {
|
||||||
return errors
|
return errors
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const clearRelayerErrors = redis => {
|
||||||
|
redis.del('errors')
|
||||||
|
}
|
||||||
module.exports = {
|
module.exports = {
|
||||||
getInstance,
|
getInstance,
|
||||||
setSafeInterval,
|
setSafeInterval,
|
||||||
fromDecimals,
|
fromDecimals,
|
||||||
logRelayerError,
|
logRelayerError,
|
||||||
readRelayerErrors,
|
readRelayerErrors,
|
||||||
|
clearRelayerErrors,
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ const { toBN, toWei, fromWei, toHex } = require('web3-utils')
|
||||||
const { redis } = require('./modules/redis')
|
const { redis } = require('./modules/redis')
|
||||||
const proxyLightABI = require('../abis/proxyLightABI.json')
|
const proxyLightABI = require('../abis/proxyLightABI.json')
|
||||||
const { queue } = require('./queue')
|
const { queue } = require('./queue')
|
||||||
const { getInstance, fromDecimals, logRelayerError } = require('./utils')
|
const { getInstance, fromDecimals, logRelayerError, clearRelayerErrors } = require('./utils')
|
||||||
const { jobType, status } = require('./constants')
|
const { jobType, status } = require('./constants')
|
||||||
const {
|
const {
|
||||||
netId,
|
netId,
|
||||||
|
@ -27,6 +27,7 @@ let gasPriceOracle
|
||||||
function start() {
|
function start() {
|
||||||
try {
|
try {
|
||||||
web3 = new Web3(httpRpcUrl)
|
web3 = new Web3(httpRpcUrl)
|
||||||
|
clearRelayerErrors(redis)
|
||||||
const { CONFIRMATIONS, MAX_GAS_PRICE } = process.env
|
const { CONFIRMATIONS, MAX_GAS_PRICE } = process.env
|
||||||
const gasPriceOracleConfig = {
|
const gasPriceOracleConfig = {
|
||||||
chainId: netId,
|
chainId: netId,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue