From 2205fd651e4bedf27fd823e301cdfb8fab3f59bf Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 27 Jul 2018 02:55:00 -1100 Subject: [PATCH] Test --- src/cc/rewards.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cc/rewards.cpp b/src/cc/rewards.cpp index 2c3b8ca6d..abd48104f 100644 --- a/src/cc/rewards.cpp +++ b/src/cc/rewards.cpp @@ -216,8 +216,9 @@ uint64_t RewardsPlanFunds(uint64_t refsbits,struct CCcontract_info *cp,CPubKey p { if ( refsbits == sbits && (nValue= IsRewardsvout(cp,tx,vout)) > 0 ) totalinputs += nValue; + else fprintf(stderr,"refsbits.%llx sbits.%llx nValue %.8f\n",(long long)refsbits,(long long)sbits,(double)nValue/COIN); } - } + } else fprintf(stderr,"funcid.%d skipped\n",funcid); } } return(totalinputs); @@ -349,7 +350,7 @@ std::string RewardsCreateFunding(uint64_t txfee,char *planstr,int64_t funds,int6 sbits = stringbits(planstr); if ( RewardsPlanExists(cp,sbits,rewardspk,a,b,c,d) != 0 ) { - fprintf(stderr,"Rewards plan %s already exists\n",planstr); + fprintf(stderr,"Rewards plan (%s) already exists\n",planstr); return(0); } if ( AddNormalinputs(mtx,mypk,funds+2*txfee,64) > 0 )