Skip to content

Commit

Permalink
Remove specific watcher check on initialChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
patitonar committed May 3, 2019
1 parent ff56ec9 commit f2610a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/initialChecks.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ async function initialChecks() {
const { ERC20_TOKEN_ADDRESS, BRIDGE_MODE, FOREIGN_RPC_URL, FOREIGN_BRIDGE_ADDRESS } = process.env
const result = {}

if (BRIDGE_MODE === 'ERC_TO_ERC' && process.argv[2].includes('affirmation-request-watcher')) {
if (BRIDGE_MODE === 'ERC_TO_ERC') {
const foreignWeb3 = new Web3(new Web3.providers.HttpProvider(FOREIGN_RPC_URL))
const tokenContract = new foreignWeb3.eth.Contract(ERC677BridgeTokenABI, ERC20_TOKEN_ADDRESS)
try {
Expand Down
2 changes: 1 addition & 1 deletion scripts/start-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WORKER="${WORKERS_DIR}${1}.js"
CONFIG="${2}.config.js"
LOG="${LOGS_DIR}${2}.txt"

CHECKS=$(node scripts/initialChecks.js "${CONFIG}")
CHECKS=$(node scripts/initialChecks.js)

if [ "${NODE_ENV}" = "production" ]; then
exec node "${WORKER}" "${CONFIG}" "$CHECKS"
Expand Down

0 comments on commit f2610a9

Please sign in to comment.