This commit is contained in:
@@ -484,7 +484,10 @@ bool DiceValidate(struct CCcontract_info *cp,Eval *eval,const CTransaction &tx)
|
||||
else if ( tx.vout[2].nValue != odds*vinTx.vout[1].nValue )
|
||||
return eval->Invalid("vout[2] payut mismatch for win/timeout");
|
||||
else if ( inputs != outputs+tx.vout[2].nValue-txfee )
|
||||
{
|
||||
fprintf(stderr,"inputs %.8f != outputs %.8f + 2 %.8f - txfee\n",(double)inputs/COIN,(double)outputs/COIN,(double)tx.vout[2].nValue/COIN);
|
||||
return eval->Invalid("CC funds mismatch for win/timeout");
|
||||
}
|
||||
iswin = (funcid == 'W');
|
||||
}
|
||||
if ( iswin != 0 )
|
||||
|
||||
Reference in New Issue
Block a user