From 6e801a8243c7482aebcc1e96f44f21d84e7978e6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 28 Jul 2018 00:23:07 -1100 Subject: [PATCH] Trim funding input --- 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 1d33dacbf..64e50bd42 100644 --- a/src/cc/rewards.cpp +++ b/src/cc/rewards.cpp @@ -526,7 +526,7 @@ std::string RewardsUnlock(uint64_t txfee,char *planstr,uint256 fundingtxid,uint2 } if ( amount > 0 && (reward= RewardsCalc(amount,mtx.vin[0].prevout.hash,APR,minseconds,maxseconds,mindeposit)) > txfee && scriptPubKey.size() > 0 ) { - if ( (inputs= AddRewardsInputs(ignore,1,cp,mtx,rewardspk,reward+amount+txfee,30)) > 0 ) + if ( (inputs= AddRewardsInputs(ignore,1,cp,mtx,rewardspk,reward+txfee,30)) > 0 ) { if ( inputs >= (reward + 2*txfee) ) CCchange = (inputs - (reward + txfee));