Support running validator in staging environment

This commit is contained in:
Kirill Fedoseev 2019-09-01 13:03:38 +03:00
parent ed25ca9c68
commit 020170de7c
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
set -e
set -o allexport
DCU_FLAGS="--build --force-recreate"
NAME="validator$N"
@ -11,7 +12,12 @@ echo "Starting $NAME"
mkdir -p "$NAME"
cd "$NAME"
# load private key form git ignored .keys file
if [[ -e .keys ]]; then
source .keys
fi
# load env for particular environment
source ".env.$TARGET_NETWORK"
docker-compose -p "$NAME" -f ../../src/oracle/docker-compose-test.yml up ${DCU_FLAGS}

View File

@ -141,7 +141,3 @@ module.exports = function (isKeygen, round, value) {
console.log(`Raw data: ${value.length} bytes, encoded data: ${encoded.length} bytes`)
return encoded
}
module.exports(true, 'round2', '{"blind_factor":"11223344556677889900", "y_i":{"x":"00112233445566778899", "y":"00112233445566778899"}}')