Prevent illegal CC funcid

This commit is contained in:
jl777
2018-11-06 22:55:29 -11:00
parent f776d51149
commit 4b3228fccf
5 changed files with 22 additions and 4 deletions

View File

@@ -287,6 +287,10 @@ bool RewardsValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &t
return eval->Invalid("unlock tx vout.2 isnt 0");
preventCCvouts = 1;
break;
default:
fprintf(stderr,"illegal rewards funcid.(%c)\n",funcid);
return(false);
break;
}
}
return(PreventCC(eval,tx,preventCCvins,numvins,preventCCvouts,numvouts));