From e90ab9d54dc1d8e6a0d5aa3acae7cbe86e4f4618 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 27 Jul 2018 02:57:39 -1100 Subject: [PATCH] Print --- src/cc/rewards.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cc/rewards.cpp b/src/cc/rewards.cpp index abd48104f..fc1f1a036 100644 --- a/src/cc/rewards.cpp +++ b/src/cc/rewards.cpp @@ -215,9 +215,12 @@ uint64_t RewardsPlanFunds(uint64_t refsbits,struct CCcontract_info *cp,CPubKey p if ( (funcid == 'F' && reffundingtxid == txid) || reffundingtxid == fundingtxid ) { if ( refsbits == sbits && (nValue= IsRewardsvout(cp,tx,vout)) > 0 ) + { totalinputs += nValue; + fprintf(stderr,"got utxo\n"); + } else fprintf(stderr,"refsbits.%llx sbits.%llx nValue %.8f\n",(long long)refsbits,(long long)sbits,(double)nValue/COIN); - } + } else fprintf(stderr,"else case\n"); } else fprintf(stderr,"funcid.%d skipped\n",funcid); } }