make unsupported funcid illegal

This commit is contained in:
jl777
2018-11-06 22:50:13 -11:00
parent da58ee102b
commit 1242e65eff
5 changed files with 26 additions and 2 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));