This commit is contained in:
jl777
2018-07-27 09:18:16 -11:00
parent 13ab2257d8
commit 386a408f74
2 changed files with 5 additions and 1 deletions

View File

@@ -28,6 +28,10 @@
#include <univalue.h>
#include <exception>
/*
A very important thing to make sure is that the change calculation is correct and takes care of handling transitions from CC outputs to normal, and vice versa
*/
#define SMALLVAL 0.000000000000001
struct CCcontract_info

View File

@@ -404,7 +404,7 @@ std::string RewardsLock(uint64_t txfee,char *planstr,uint256 fundingtxid,int64_t
std::string RewardsUnlock(uint64_t txfee,char *planstr,uint256 fundingtxid,uint256 locktxid)
{
CMutableTransaction mtx; char coinaddr[64]; CPubKey mypk,rewardspk; CScript opret; uint64_t funding,sbits,reward,amount=0,inputs,CCchange=0,APR,minseconds,maxseconds,mindeposit; struct CCcontract_info *cp,C;
CMutableTransaction mtx; char coinaddr[64]; CPubKey mypk,rewardspk; CScript opret; uint64_t funding,sbits,reward=0,amount=0,inputs,CCchange=0,APR,minseconds,maxseconds,mindeposit; struct CCcontract_info *cp,C;
cp = CCinit(&C,EVAL_REWARDS);
if ( txfee == 0 )
txfee = 10000;