From 9067057a50acc65f2c747cef726da42285de735a Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 15 Nov 2016 17:19:11 -0300 Subject: [PATCH] test --- src/komodo_interest.h | 2 +- src/wallet/wallet.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/komodo_interest.h b/src/komodo_interest.h index afbc9fcf8..e9a179e08 100644 --- a/src/komodo_interest.h +++ b/src/komodo_interest.h @@ -67,7 +67,7 @@ uint64_t komodo_interest(int32_t txheight,uint64_t nValue,uint32_t nLockTime,uin if ( denominator == 0 ) denominator = 1; // max KOMODO_INTEREST per transfer, do it at least annually! interest = (numerator / denominator) / COIN; - fprintf(stderr,"komodo_interest %lld %.8f nLockTime.%u tiptime.%u minutes.%d interest %lld %.8f (%llu / %llu)\n",(long long)nValue,(double)nValue/COIN,nLockTime,tiptime,minutes,(long long)interest,(double)interest/COIN,(long long)numerator,(long long)denominator); + //fprintf(stderr,"komodo_interest %lld %.8f nLockTime.%u tiptime.%u minutes.%d interest %lld %.8f (%llu / %llu)\n",(long long)nValue,(double)nValue/COIN,nLockTime,tiptime,minutes,(long long)interest,(double)interest/COIN,(long long)numerator,(long long)denominator); } } return(interest); diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index a5fe817c1..a44be4740 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -2337,7 +2337,7 @@ bool CWallet::SelectCoinsMinConf(const CAmount& nTargetValue, int nConfMine, int nTotalLower += n; if ( count < sizeof(interests)/sizeof(*interests) ) { - fprintf(stderr,"count.%d %.8f\n",count,(double)pcoin->vout[i].interest/COIN); + //fprintf(stderr,"count.%d %.8f\n",count,(double)pcoin->vout[i].interest/COIN); interests[count++] = pcoin->vout[i].interest; } } @@ -2593,6 +2593,7 @@ bool CWallet::CreateTransaction(const vector& vecSend, //reflecting an assumption the user would accept a bit more delay for //a chance at a free transaction. //But mempool inputs might still be in the mempool, so their age stays 0 + fprintf(stderr,"nCredit %.8f interest %.8f\n",(double)nCredit/COIN,(double)pcoin.first->vout[pcoin.second].interest/COIN); int age = pcoin.first->GetDepthInMainChain(); if (age != 0) age += 1;