From d587c96cfc9aaf92c853ffda2c31b8ad509340f2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 7 Aug 2018 04:46:54 -1100 Subject: [PATCH] Minimum rewardsfunding --- src/cc/rewards.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/rewards.cpp b/src/cc/rewards.cpp index afa025851..d9de1ebdb 100644 --- a/src/cc/rewards.cpp +++ b/src/cc/rewards.cpp @@ -412,7 +412,7 @@ UniValue RewardsList() std::string RewardsCreateFunding(uint64_t txfee,char *planstr,int64_t funds,int64_t APR,int64_t minseconds,int64_t maxseconds,int64_t mindeposit) { CMutableTransaction mtx; CPubKey mypk,rewardspk; CScript opret; uint64_t sbits,a,b,c,d; struct CCcontract_info *cp,C; - if ( funds < 0 || mindeposit < 0 || minseconds < 0 || maxseconds < 0 ) + if ( funds < COIN || mindeposit < 0 || minseconds < 0 || maxseconds < 0 ) { fprintf(stderr,"negative parameter error\n"); return(0);