From ee90d3d7c80181c447adc10d03bc2f1821433801 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 31 Jul 2018 03:35:25 -1100 Subject: [PATCH] Test --- src/cc/CCutils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cc/CCutils.cpp b/src/cc/CCutils.cpp index daaa73ade..c4e5be3fb 100644 --- a/src/cc/CCutils.cpp +++ b/src/cc/CCutils.cpp @@ -259,15 +259,18 @@ bool ProcessCC(struct CCcontract_info *cp,Eval* eval, std::vector param //txid = ctx.GetHash(); //if ( txid == cp->prevtxid ) // return(true); + 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 ) return eval->Invalid("no-vouts"); else if ( (*cp->validate)(cp,eval,ctx) != 0 ) { + fprintf(stderr,"done CC %02x\n",cp->evalcode); //cp->prevtxid = txid; return(true); } + fprintf(stderr,"invalid CC %02x\n",cp->evalcode); return(false); }