From dc5b415b9718ea08ec8d9ffe06878ff366c1339d Mon Sep 17 00:00:00 2001 From: Kirill Fedoseev Date: Mon, 25 Nov 2019 17:32:31 +0300 Subject: [PATCH] Updated configs --- .circleci/config.yml | 7 ++++--- DEMO.md | 2 +- src/ethereum-testnet/docker-compose.yml | 2 +- src/oracle/tss-sign/signer.js | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 18daaeb..41ffaa4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -92,9 +92,10 @@ orbs: - run: name: "Save ganache logs" command: | - mkdir -p ./artifacts/logs/ganache - docker logs ganache_home > ./artifacts/logs/ganache/home.log - docker logs ganache_side > ./artifacts/logs/ganache/side.log + 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 when: always - run: name: "Save binance logs" diff --git a/DEMO.md b/DEMO.md index 2d5a5f4..f225671 100644 --- a/DEMO.md +++ b/DEMO.md @@ -333,7 +333,7 @@ Make sure, to first run demo in development mode, before trying to run it in the docker kill binance-testnet_api-server_1 docker kill ethereum-testnet_ganache_home_1 docker kill ethereum-testnet_ganache_side_1 - docker kill ethereum-testnet_side_oracle_1 + docker kill ethereum-testnet_side-oracle_1 ``` 3. Remove testnets and validators data: ``` diff --git a/src/ethereum-testnet/docker-compose.yml b/src/ethereum-testnet/docker-compose.yml index 4003362..cb1af7d 100644 --- a/src/ethereum-testnet/docker-compose.yml +++ b/src/ethereum-testnet/docker-compose.yml @@ -18,7 +18,7 @@ services: - '8545:8545' volumes: - 'ganache_home_data:/app/db' - side_oracle: + side-oracle: build: side-oracle image: side-oracle env_file: side-oracle/.env.development diff --git a/src/oracle/tss-sign/signer.js b/src/oracle/tss-sign/signer.js index 1e8ae81..058383a 100644 --- a/src/oracle/tss-sign/signer.js +++ b/src/oracle/tss-sign/signer.js @@ -309,7 +309,7 @@ async function consumer(msg) { writeParams(parties, threshold) let attempt = 1 - const { tx, exchanges } = buildTx(from, account, data, attempt) + const { tx, exchanges } = await buildTx(from, account, data, attempt) while (tx !== null) { const signResult = await sign(keysFile, tx, publicKey, from)