mirror of
https://github.com/tornadocash/tornado-relayer.git
synced 2025-08-16 18:10:36 -04:00
Handle default values for tx watcher
This commit is contained in:
parent
7183af707b
commit
05a043168c
3 changed files with 35 additions and 9 deletions
10
config.js
10
config.js
|
@ -1,7 +1,7 @@
|
|||
require('dotenv').config()
|
||||
|
||||
module.exports = {
|
||||
version: 2.5,
|
||||
version: 2.6,
|
||||
netId: Number(process.env.NET_ID) || 42,
|
||||
redisUrl: process.env.REDIS_URL,
|
||||
rpcUrl: process.env.RPC_URL || 'https://kovan.infura.io/',
|
||||
|
@ -148,8 +148,8 @@ module.exports = {
|
|||
gasOracleUrls: ['https://ethgasstation.info/json/ethgasAPI.json', 'https://gas-oracle.zoltu.io/'],
|
||||
port: process.env.APP_PORT,
|
||||
relayerServiceFee: Number(process.env.RELAYER_FEE),
|
||||
maxGasPrice: process.env.MAX_GAS_PRICE,
|
||||
watherInterval: Number(process.env.NONCE_WATCHER_INTERVAL) * 1000,
|
||||
pendingTxTimeout: Number(process.env.ALLOWABLE_PENDING_TX_TIMEOUT) * 1000,
|
||||
gasBumpPercentage: process.env.GAS_PRICE_BUMP_PERCENTAGE
|
||||
maxGasPrice: process.env.MAX_GAS_PRICE || 200,
|
||||
watherInterval: Number(process.env.NONCE_WATCHER_INTERVAL || 30) * 1000,
|
||||
pendingTxTimeout: Number(process.env.ALLOWABLE_PENDING_TX_TIMEOUT || 180) * 1000,
|
||||
gasBumpPercentage: process.env.GAS_PRICE_BUMP_PERCENTAGE || 20
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue