Add --trust-node flag to cli to skip proofs on queries

This commit is contained in:
Ethan Frey
2017-07-29 17:23:21 -04:00
parent f0e2227ada
commit b98bfc01ae
3 changed files with 27 additions and 4 deletions
+13
View File
@@ -66,9 +66,22 @@ test02SendTxWithFee() {
# Make sure tx is indexed
checkSendFeeTx $HASH $TX_HEIGHT $SENDER "90" "10"
# make sure this works without trust also
export BCTRUST_NODE=1
checkSendFeeTx $HASH $TX_HEIGHT $SENDER "90" "10"
unset BCTRUST_NODE
# assert replay protection
TX=$(echo qwertyuiop | ${CLIENT_EXE} tx send --amount=90mycoin --fee=10mycoin --sequence=2 --to=$RECV --name=$RICH 2>/dev/null)
assertFalse "line=${LINENO}, replay: $TX" $?
# make sure this works without trust also
export BCTRUST_NODE=1
checkAccount $SENDER "9007199254739900"
checkAccount $RECV "1082"
unset BCTRUST_NODE
# checking normally
checkAccount $SENDER "9007199254739900"
checkAccount $RECV "1082"