From 4e83afe6331f49cdfd8520feae8cbee6f66d5b30 Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 25 Jan 2021 23:51:21 -0600 Subject: [PATCH] broadcastNodes --- .env.example | 2 ++ package.json | 2 +- src/singletons.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index d45e2bf..8b14e41 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/package.json b/package.json index 0cbd4a3..0f45a57 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "root-updater", - "version": "1.0.7", + "version": "1.0.8", "description": "", "main": "index.js", "scripts": { diff --git a/src/singletons.js b/src/singletons.js index 2846619..13173c7 100644 --- a/src/singletons.js +++ b/src/singletons.js @@ -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,