Bad solution ?
This commit is contained in:
@@ -2963,7 +2963,7 @@ bool sudoku_validate(struct CCcontract_info *cp,int32_t height,Eval *eval,const
|
|||||||
if ( dupree_solver(0,&score,unsolved) != 1 || score*COIN != tx.vout[1].nValue )
|
if ( dupree_solver(0,&score,unsolved) != 1 || score*COIN != tx.vout[1].nValue )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"ht.%d score.%d vs %.8f %s\n",height,score,(double)tx.vout[1].nValue/COIN,tx.GetHash().ToString().c_str());
|
fprintf(stderr,"ht.%d score.%d vs %.8f %s\n",height,score,(double)tx.vout[1].nValue/COIN,tx.GetHash().ToString().c_str());
|
||||||
if ( height > 2000 )
|
if ( strcmp(ASSETCHAINS_SYMBOL,"SUDOKU") != 0 || height > 2000 )
|
||||||
return eval->Invalid("mismatched sudoku value vs score");
|
return eval->Invalid("mismatched sudoku value vs score");
|
||||||
else return(true);
|
else return(true);
|
||||||
} else return(true);
|
} else return(true);
|
||||||
@@ -2979,6 +2979,7 @@ bool sudoku_validate(struct CCcontract_info *cp,int32_t height,Eval *eval,const
|
|||||||
fprintf(stderr,"%s\n",solution);
|
fprintf(stderr,"%s\n",solution);
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
fprintf(stderr,"solution ht.%d %s bad opret\n",height,tx.GetHash().ToString().c_str());
|
||||||
return eval->Invalid("invalid solution opreturn");
|
return eval->Invalid("invalid solution opreturn");
|
||||||
default: return eval->Invalid("invalid funcid");
|
default: return eval->Invalid("invalid funcid");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user