Default validation for sudoku
This commit is contained in:
@@ -522,7 +522,7 @@ UniValue sudoku_generate(uint64_t txfee,struct CCcontract_info *cp,cJSON *params
|
||||
result.push_back(Pair("amount",ValueFromAmount(amount)));
|
||||
if ( (inputsum= AddCClibInputs(cp,mtx,sudokupk,amount+2*txfee,16)) >= amount+2*txfee )
|
||||
{
|
||||
printf("inputsum %.8f\n",(double)inputsum/COIN);
|
||||
//printf("inputsum %.8f\n",(double)inputsum/COIN);
|
||||
mtx.vout.push_back(MakeCC1vout(cp->evalcode,txfee,sudokupk));
|
||||
mtx.vout.push_back(MakeCC1vout(cp->evalcode,amount,pk));
|
||||
if ( inputsum > amount + 2*txfee )
|
||||
@@ -558,3 +558,8 @@ UniValue sudoku_pending(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
|
||||
return(result);
|
||||
}
|
||||
|
||||
|
||||
bool sudoku_validate(struct CCcontract_info *cp,int32_t height,Eval *eval,const CTransaction tx)
|
||||
{
|
||||
return(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user