From 1969001bf258a5347d83d3f0d2250ca4be389f2e Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 8 Nov 2018 20:47:43 -1100 Subject: [PATCH] N --- 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 5280c5b0e..1e2e8931f 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -956,7 +956,7 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx) case 'R': if ( eval->GetTxUnconfirmed(tx.vin[0].prevout.hash,vinTx,hashBlock) == 0 ) return eval->Invalid("always should find vin.0, but didnt for refund"); - else if ( vinTx.vout[tx.vin[0].prevout.].scriptPubKey != fundingPubKey ) + else if ( vinTx.vout[tx.vin[0].prevout.n].scriptPubKey != fundingPubKey ) return eval->Invalid("vin.0 not from fundingPubKey for refund"); if ( (rand() % 100) == 0 ) fprintf(stderr,"add more validation for refunds\n");