From 9d61ff9e9dae8850485fbc6806513162c993c804 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 1 Aug 2018 00:28:27 -1100 Subject: [PATCH] Test --- src/cc/dice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index bc405e05a..d4877b84f 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -430,7 +430,7 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx) return eval->Invalid("vout[1] constrain violation for bet"); else if ( tx.vout[2].nValue >= txfee+maxodds || tx.vout[2].nValue < txfee ) return eval->Invalid("vout[2] nValue violation for bet"); - else if ( eval->GetTxUnconfirmed(vinTx.vin[0].prevout.hash,vinofvinTx,hashBlock) == 0 || vinofvinTx.vout.size() > 1 ) + else if ( eval->GetTxUnconfirmed(vinTx.vin[0].prevout.hash,vinofvinTx,hashBlock) == 0 || vinofvinTx.vout.size() < 2 ) return eval->Invalid("always should find vinofvin.0, but didnt for bet"); else if ( vinofvinTx.vout[1].scriptPubKey != fundingPubKey ) { -- 2.42.0