Add --trust-node flag to cli to skip proofs on queries
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user