Removed useless debug output

This commit is contained in:
Kirill Fedoseev 2019-10-30 16:54:09 +03:00
parent ef1878a31a
commit e8e42429fb
1 changed files with 0 additions and 9 deletions

View File

@ -12,14 +12,6 @@ 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(`${HOME_RPC_URL} ${HOME_BRIDGE_ADDRESS}`)
axios.post(HOME_RPC_URL, {
jsonrpc: '2.0',
method: 'eth_getCode',
params: [ HOME_BRIDGE_ADDRESS, 'latest' ],
id: 1
}).then(x => console.log(x.data), console.log)
const homeWeb3 = new Web3(HOME_RPC_URL)
const bridge = new homeWeb3.eth.Contract(abiBridge, HOME_BRIDGE_ADDRESS)
const validatorAddress = homeWeb3.eth.accounts.privateKeyToAccount(`0x${VALIDATOR_PRIVATE_KEY}`).address
@ -104,7 +96,6 @@ async function initialize () {
}
logger.debug('Checking if current validator')
isCurrentValidator = (await bridge.methods.getValidators().call()).includes(validatorAddress)
logger.debug(`${isCurrentValidator}`)
if (isCurrentValidator) {
logger.info(`${validatorAddress} is a current validator`)
} else {