From 3f030864cdf6b45a948cd7a960f093b6ddf3175b Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 23 Jul 2018 05:59:11 -1100 Subject: [PATCH] Test --- src/cc/CCtx.cpp | 2 +- src/cc/faucet.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/cc/CCtx.cpp b/src/cc/CCtx.cpp index 13e4546c3..845178e59 100644 --- a/src/cc/CCtx.cpp +++ b/src/cc/CCtx.cpp @@ -59,7 +59,7 @@ std::string FinalizeCCTx(uint8_t evalcode,CMutableTransaction &mtx,CPubKey mypk, mycond = MakeCC(evalcode,mypk); GetCCaddress(evalcode,unspendable,unspendablepk); othercond = MakeCC(evalcode,unspendablepk); - fprintf(stderr,"myCCaddr.(%s) %p vs unspendable.(%s) %p\n",myaddr,mycond,unspendable,othercond); + //fprintf(stderr,"myCCaddr.(%s) %p vs unspendable.(%s) %p\n",myaddr,mycond,unspendable,othercond); memset(utxovalues,0,sizeof(utxovalues)); for (i=0; i > unspentOutputs; GetCCaddress(EVAL_FAUCET,coinaddr,pk); SetCCunspents(unspentOutputs,coinaddr); - //std::sort(unspentOutputs.begin(), unspentOutputs.end(), heightSort); for (std::vector >::const_iterator it=unspentOutputs.begin(); it!=unspentOutputs.end(); it++) { txid = it->first.txhash; @@ -178,7 +176,7 @@ std::string FaucetGet(uint64_t txfee) mtx.vout.push_back(MakeFaucetVout(CCchange,faucetpk)); mtx.vout.push_back(CTxOut(nValue,CScript() << ParseHex(HexStr(mypk)) << OP_CHECKSIG)); return(FinalizeCCTx(EVAL_FAUCET,mtx,mypk,txfee,opret)); - } + } else fprintf(stderr,"cant find faucet inputs\n"); return(0); }