From c6853146f70d3a00c7bc955363054e3a3ed6a4ca Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 21 Jul 2018 06:37:49 -1100 Subject: [PATCH] Test --- src/cc/assets.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cc/assets.cpp b/src/cc/assets.cpp index d13c10f62..8b32a9323 100644 --- a/src/cc/assets.cpp +++ b/src/cc/assets.cpp @@ -501,7 +501,7 @@ std::string FinalizeCCTx(uint8_t evalcode,CMutableTransaction &mtx,CPubKey mypk, utxovout = mtx.vin[i].prevout.n; utxovalues[i] = vintx.vout[utxovout].nValue; totalinputs += utxovalues[i]; - if ( IsCCInput(mtx.vin[utxovout].scriptSig) == 0 ) + if ( vintx.vout[utxovout].scriptPubKey.IsPayToCryptoCondition() == 0 ) { fprintf(stderr,"vin.%d is normal %.8f\n",i,(double)utxovalues[i]/COIN); vinimask |= (1LL << i); @@ -514,11 +514,13 @@ std::string FinalizeCCTx(uint8_t evalcode,CMutableTransaction &mtx,CPubKey mypk, { privkey = myprivkey; cond = mycond; + fprintf(stderr,"my CC addr.(%s)\n",myaddr); } else if ( strcmp(destaddr,unspendable) == 0 ) { privkey = unspendablepriv; cond = othercond; + fprintf(stderr,"unspendable CC addr.(%s)\n",unspendable); } else {