From 572ce78169280a46c1c0e2e976d07ba37aad9079 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 28 Jul 2018 01:02:00 -1100 Subject: [PATCH] Activate CCduration constraint --- src/cc/rewards.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/rewards.cpp b/src/cc/rewards.cpp index cc174804f..2944c1bee 100644 --- a/src/cc/rewards.cpp +++ b/src/cc/rewards.cpp @@ -71,8 +71,8 @@ uint64_t RewardsCalc(uint64_t amount,uint256 txid,uint64_t APR,uint64_t minsecon uint64_t duration,reward = 0; if ( (duration= CCduration(txid)) < minseconds ) { - //return(0); - duration = (uint32_t)time(NULL) - (1532713903 - 3600 * 24); + return(0); + //duration = (uint32_t)time(NULL) - (1532713903 - 3600 * 24); } else if ( duration > maxseconds ) maxseconds = duration; reward = (((amount * APR) / COIN) * duration) / (365*24*3600LL * 100);