From 86cecf71d1cef43d5223c65e54b67989494d3f87 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 7 Nov 2018 00:09:14 -1100 Subject: [PATCH] Test --- src/cc/dice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 046696997..c96545e7d 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -597,7 +597,8 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx) return eval->Invalid("always should find vinofvin.0, but didnt for bet"); else if ( vinTx.vin[0].prevout.hash != fundingtxid ) { - if ( vinofvinTx.vout[vinTx.vin[0].prevout.n].scriptPubKey != fundingPubKey ) + if ( vinofvinTx.vout[1].scriptPubKey != fundingPubKey ) + //if ( vinofvinTx.vout[vinTx.vin[0].prevout.n].scriptPubKey != fundingPubKey ) { uint8_t *ptr0,*ptr1; int32_t i; char str[65]; fprintf(stderr,"bidTx.%s\n",uint256_str(str,txid));