diff options
Diffstat (limited to 'server/testdata/cmd')
-rwxr-xr-x | server/testdata/cmd/get-consistency-proof | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/server/testdata/cmd/get-consistency-proof b/server/testdata/cmd/get-consistency-proof new file mode 100755 index 0000000..b5b749c --- /dev/null +++ b/server/testdata/cmd/get-consistency-proof @@ -0,0 +1,16 @@ +#!/bin/bash + +set -eo pipefail +source config + +first="1" +second="2" +if [[ ! -z $1 ]] && [[ ! -z $2 ]]; then + first=$1 + second=$2 +fi + +info "sending get-consistency-proof request" +curl -G -d "first=$first" -d "second=$second" $base_url/get-consistency-proof +newline +# TODO: try decoding and verifying proof |