broadcastNodes

This commit is contained in:
Alexey 2021-01-25 23:51:21 -06:00
parent 8a3ad1de40
commit 4e83afe633
3 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,6 @@
RPC_URL=
# additional nodes to send raw tx to. comma separated values
BROADCAST_NODES=https://api.taichi.network:10001/rpc/public,https://cloudflare-eth.com
REDIS_URL=redis://127.0.0.1:6379
AGGREGATOR=0x8cb1436F64a3c33aD17bb42F94e255c4c0E871b2

View File

@ -1,6 +1,6 @@
{
"name": "root-updater",
"version": "1.0.7",
"version": "1.0.8",
"description": "",
"main": "index.js",
"scripts": {

View File

@ -16,6 +16,7 @@ web3.eth.defaultAccount = web3.eth.accounts.privateKeyToAccount('0x' + process.e
const txManager = new TxManager({
privateKey: process.env.PRIVATE_KEY,
rpcUrl: process.env.RPC_URL,
broadcastNodes: process.env.BROADCAST_NODES.split(','),
config: {
CONFIRMATIONS: process.env.CONFIRMATION_BLOCKS,
MAX_GAS_PRICE: process.env.GAS_PRICE,