Fixed circle ci config. Additional checks on next validator

This commit is contained in:
Kirill Fedoseev 2019-11-26 15:03:55 +03:00
parent 11e22b3bc0
commit b2f7d035f2
2 changed files with 9 additions and 4 deletions

View File

@ -94,8 +94,8 @@ orbs:
command: |
mkdir -p ./artifacts/logs/ethereum
docker logs ethereum-testnet_side-oracle_1 > ./artifacts/logs/ethereum/side-oracle.log
docker logs ethereum-testnet_ganache_home_1 > ./artifacts/logs/ganache/ganache_home.log
docker logs ethereum-testnet_ganache_side_1 > ./artifacts/logs/ganache/ganache_side.log
docker logs ethereum-testnet_ganache_home_1 > ./artifacts/logs/ethereum/ganache_home.log
docker logs ethereum-testnet_ganache_side_1 > ./artifacts/logs/ethereum/ganache_side.log
when: always
- run:
name: "Save binance logs"
@ -107,6 +107,7 @@ orbs:
when: always
- store_artifacts:
path: ./artifacts
destination: artifacts
when: always
jobs:
init_tss:

View File

@ -286,10 +286,14 @@ async function loop() {
logger.trace('Consumed event %o %o', event, bridgeEvents[i])
switch (event.name) {
case 'NewEpoch':
await sendKeygen(event)
if ((await bridge.getValidators(event.values.newEpoch)).includes(validatorAddress)) {
await sendKeygen(event)
}
break
case 'NewEpochCancelled':
sendKeygenCancellation(event)
if ((await bridge.getValidators(event.values.epoch)).includes(validatorAddress)) {
sendKeygenCancellation(event)
}
break
case 'NewFundsTransfer':
if (isCurrentValidator) {