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