Browse Source

+prints

pull/4/head
jl777 6 years ago
parent
commit
9c5c9f0b9d
  1. 2
      src/cc/CCutils.cpp
  2. 2
      src/cc/eval.cpp
  3. 2
      src/cryptoconditions/src/internal.h
  4. 1
      src/cryptoconditions/src/utils.c

2
src/cc/CCutils.cpp

@ -260,7 +260,7 @@ bool ProcessCC(struct CCcontract_info *cp,Eval* eval, std::vector<uint8_t> param
//txid = ctx.GetHash();
//if ( txid == cp->prevtxid )
// return(true);
//fprintf(stderr,"process CC %02x\n",cp->evalcode);
fprintf(stderr,"process CC %02x\n",cp->evalcode);
if ( paramsNull.size() != 0 ) // Don't expect params
return eval->Invalid("Cannot have params");
else if ( ctx.vout.size() == 0 )

2
src/cc/eval.cpp

@ -38,7 +38,7 @@ bool RunCCEval(const CC *cond, const CTransaction &tx, unsigned int nIn)
pthread_mutex_lock(&KOMODO_CC_mutex);
bool out = eval->Dispatch(cond, tx, nIn);
pthread_mutex_unlock(&KOMODO_CC_mutex);
//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;

2
src/cryptoconditions/src/internal.h

@ -56,7 +56,7 @@ typedef struct CCType {
/*
* Globals
*/
extern struct CCType *CCTypeRegistry[16];
extern struct CCType *CCTypeRegistry[];
extern int CCTypeRegistryLength;

1
src/cryptoconditions/src/utils.c

@ -137,6 +137,7 @@ unsigned char *base64_decode(const unsigned char *data_,
void base64_cleanup() {
free(decoding_table);
decoding_table = 0;
}

Loading…
Cancel
Save