Trying to figure out why eth watcher does not work properly on CI env 2
This commit is contained in:
parent
ceb370a217
commit
cee521f079
|
@ -10,6 +10,6 @@ COPY ./ethWatcher/package.json /watcher/
|
|||
RUN npm install
|
||||
|
||||
COPY ./ethWatcher/ethWatcher.js ./shared/db.js ./shared/logger.js ./shared/amqp.js ./shared/crypto.js /watcher/
|
||||
COPY ./proxy/Bridge.json /watcher/contracts_data/
|
||||
COPY ./ethWatcher/Bridge.json /watcher/contracts_data/
|
||||
|
||||
ENTRYPOINT ["node", "ethWatcher.js"]
|
||||
|
|
|
@ -10,9 +10,12 @@ const { publicKeyToAddress } = require('./crypto')
|
|||
|
||||
const abiBridge = require('./contracts_data/Bridge.json').abi
|
||||
|
||||
const { HOME_RPC_URL, HOME_BRIDGE_ADDRESS, RABBITMQ_URL, HOME_START_BLOCK, VALIDATOR_PRIVATE_KEY } = process.env
|
||||
logger.debug('%o', abiBridge)
|
||||
setInterval(() => {
|
||||
logger.debug("alive", 5000)
|
||||
})
|
||||
|
||||
logger.debug('%o', process.env)
|
||||
const { HOME_RPC_URL, HOME_BRIDGE_ADDRESS, RABBITMQ_URL, HOME_START_BLOCK, VALIDATOR_PRIVATE_KEY } = process.env
|
||||
|
||||
const homeWeb3 = new Web3(HOME_RPC_URL)
|
||||
const bridge = new homeWeb3.eth.Contract(abiBridge, HOME_BRIDGE_ADDRESS)
|
||||
|
|
Loading…
Reference in New Issue