Enforce -pubkey and -addressindex for all CC rpc calls

This commit is contained in:
jl777
2018-07-23 00:37:54 -11:00
parent 2bead5c15f
commit e10def86a7
2 changed files with 40 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ bool RunCCEval(const CC *cond, const CTransaction &tx, unsigned int nIn)
EvalRef eval;
bool out = eval->Dispatch(cond, tx, nIn);
fprintf(stderr,"out %d vs %d isValid\n",(int32_t)out,(int32_t)eval->state.IsValid());
//fprintf(stderr,"out %d vs %d isValid\n",(int32_t)out,(int32_t)eval->state.IsValid());
assert(eval->state.IsValid() == out);
if (eval->state.IsValid()) return true;