Support running validator in staging environment
This commit is contained in:
parent
ed25ca9c68
commit
020170de7c
|
@ -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}
|
||||
|
|
|
@ -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"}}')
|
||||
|
||||
|
|
Loading…
Reference in New Issue