Eval* eval,
This commit is contained in:
@@ -33,7 +33,7 @@ struct CCcontract_info
|
|||||||
uint256 prevtxid;
|
uint256 prevtxid;
|
||||||
char unspendableCCaddr[64],CChexstr[72];
|
char unspendableCCaddr[64],CChexstr[72];
|
||||||
uint8_t CCpriv[32];
|
uint8_t CCpriv[32];
|
||||||
bool (*validate)(Eval* eval,struct CCcontract_info *cp,const CTransaction &tx);
|
bool (*validate)(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx);
|
||||||
bool (*ismyvin)(CScript const& scriptSig);
|
bool (*ismyvin)(CScript const& scriptSig);
|
||||||
uint8_t evalcode,didinit;
|
uint8_t evalcode,didinit;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ bool FaucetExactAmounts(struct CCcontract_info *cp,Eval* eval,const CTransaction
|
|||||||
else return(true);
|
else return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool FaucetValidate(Eval* eval,const CTransaction &tx)
|
bool FaucetValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &tx)
|
||||||
{
|
{
|
||||||
int32_t numvins,numvouts,preventCCvins,preventCCvouts,i;
|
int32_t numvins,numvouts,preventCCvins,preventCCvouts,i;
|
||||||
numvins = tx.vin.size();
|
numvins = tx.vin.size();
|
||||||
@@ -92,7 +92,7 @@ bool FaucetValidate(Eval* eval,const CTransaction &tx)
|
|||||||
return eval->Invalid("illegal normal vini");
|
return eval->Invalid("illegal normal vini");
|
||||||
}
|
}
|
||||||
fprintf(stderr,"check amounts\n");
|
fprintf(stderr,"check amounts\n");
|
||||||
if ( FaucetExactAmounts(eval,tx,1,10000) == false )
|
if ( FaucetExactAmounts(cp,eval,tx,1,10000) == false )
|
||||||
return false;
|
return false;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user