Fixed circle ci config. Additional checks on next validator
This commit is contained in:
parent
11e22b3bc0
commit
b2f7d035f2
|
@ -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:
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue