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

@@ -348,6 +348,10 @@ bool ChannelsValidate(struct CCcontract_info *cp,Eval* eval,const CTransaction &
return eval->Invalid("invalid amount, refund amount and funds in channel must match!");
}
break;
default:
fprintf(stderr,"illegal channels funcid.(%c)\n",funcid);
return(false);
break;
}
}
retval = PreventCC(eval,tx,preventCCvins,numvins,preventCCvouts,numvouts);