From ef7a35489553120959b6f3ce3fa1b25cacacfe25 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 24 Oct 2016 06:33:57 -0300 Subject: [PATCH] test --- src/komodo.h | 8 ++++---- src/komodo_interest.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 05814cd95..d6aa453cb 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -471,7 +471,7 @@ void komodo_pvals(int32_t height,uint32_t *pvals,uint8_t numpvals) { if ( pvals[i] != 0 ) nonz++; - printf("%u ",pvals[i]); + //printf("%u ",pvals[i]); } if ( nonz == 32 ) { @@ -485,7 +485,7 @@ void komodo_pvals(int32_t height,uint32_t *pvals,uint8_t numpvals) PVALS[36 * NUM_PRICES] = height; memcpy(&PVALS[36 * NUM_PRICES + 1],pvals,sizeof(*pvals) * 35); NUM_PRICES++; - printf("OP_RETURN.%d KMD %.8f BTC %.6f CNY %.6f NUM_PRICES.%d\n",height,KMDBTC,BTCUSD,CNYUSD,NUM_PRICES); + //printf("OP_RETURN.%d KMD %.8f BTC %.6f CNY %.6f NUM_PRICES.%d\n",height,KMDBTC,BTCUSD,CNYUSD,NUM_PRICES); } } } @@ -660,7 +660,7 @@ int32_t komodo_stateupdate(int32_t height,uint8_t notarypubs[][33],uint8_t numno if ( fwrite(pvals,sizeof(uint32_t),numpvals,fp) != numpvals ) errs++; komodo_pvals(height,pvals,numpvals); - printf("save pvals height.%d numpvals.%d\n",height,numpvals); + //printf("save pvals height.%d numpvals.%d\n",height,numpvals); } else if ( height != 0 ) { @@ -769,7 +769,7 @@ int32_t komodo_voutupdate(int32_t notaryid,uint8_t *scriptbuf,int32_t scriptlen, double KMDBTC,BTCUSD,CNYUSD; uint32_t numpvals,timestamp,pvals[128]; numpvals = dpow_readprices(&scriptbuf[++len],×tamp,&KMDBTC,&BTCUSD,&CNYUSD,pvals); komodo_stateupdate(height,0,0,0,zero,0,0,pvals,numpvals); - printf("vout OP_RETURN.%d prices numpvals.%d opretlen.%d\n",height,numpvals,opretlen); + //printf("vout OP_RETURN.%d prices numpvals.%d opretlen.%d\n",height,numpvals,opretlen); } } return(notaryid); diff --git a/src/komodo_interest.h b/src/komodo_interest.h index f86d29267..2e7585516 100644 --- a/src/komodo_interest.h +++ b/src/komodo_interest.h @@ -55,7 +55,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,dstr(nValue),nLockTime,tiptime,minutes,(long long)interest,dstr(interest),(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,dstr(nValue),nLockTime,tiptime,minutes,(long long)interest,dstr(interest),(long long)numerator,(long long)denominator); } } return(interest);