From 55e1d9dcdf28115c1d21eb1f9eadf27e3ff368f4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 12 Sep 2018 00:55:38 -1100 Subject: [PATCH] Test --- src/cc/CCtx.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cc/CCtx.cpp b/src/cc/CCtx.cpp index b92879359..98ae31f58 100644 --- a/src/cc/CCtx.cpp +++ b/src/cc/CCtx.cpp @@ -331,6 +331,7 @@ int64_t AddNormalinputs(CMutableTransaction &mtx,CPubKey mypk,int64_t total,int3 { txid = out.tx->GetHash(); vout = out.i; + char str[65]; fprintf(stderr,"check %s/v%d\n",uint256_str(str,txid),vout); if ( GetTransaction(txid,tx,hashBlock,false) != 0 && tx.vout.size() > 0 && vout < tx.vout.size() && tx.vout[vout].scriptPubKey.IsPayToCryptoCondition() == 0 ) { if ( mtx.vin.size() > 0 ) @@ -349,8 +350,10 @@ int64_t AddNormalinputs(CMutableTransaction &mtx,CPubKey mypk,int64_t total,int3 if ( i != n ) continue; } + fprintf(stderr,"check in mempool\n"); if ( myIsutxo_spentinmempool(txid,vout) == 0 ) { + fprintf(stderr,"add to vins array.%d of %d\n",n,maxutxos); up = &utxos[n++]; up->txid = txid; up->nValue = out.tx->vout[out.i].nValue;