diff --git a/src/cc/CCtx.cpp b/src/cc/CCtx.cpp index acf47ec9f..0145133fd 100644 --- a/src/cc/CCtx.cpp +++ b/src/cc/CCtx.cpp @@ -67,10 +67,10 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran { utxovout = mtx.vin[i].prevout.n; utxovalues[i] = vintx.vout[utxovout].nValue; - totalinputs += utxovalues[i]; if ( vintx.vout[utxovout].scriptPubKey.IsPayToCryptoCondition() == 0 ) { //fprintf(stderr,"vin.%d is normal %.8f\n",i,(double)utxovalues[i]/COIN); + totalinputs += utxovalues[i]; vinimask |= (1LL << i); } else