This commit is contained in:
jl777
2018-07-27 00:43:31 -11:00
parent 4b83ae999b
commit 636517f866
3 changed files with 6 additions and 3 deletions

View File

@@ -271,7 +271,7 @@ std::string RewardsUnlock(uint64_t txfee,char *planstr,uint256 fundingtxid,uint2
if ( (inputs= AddRewardsInputs(cp,mtx,mypk,reward+amount+txfee,30)) > 0 )
{
if ( inputs >= (amount + reward + 2*txfee) )
CCchange = (inputs - amount - reward - txfee);
CCchange = (inputs - (amount + reward + txfee));
if ( CCchange != 0 )
mtx.vout.push_back(MakeCC1vout(cp->evalcode,CCchange,rewardspk));
mtx.vout.push_back(CTxOut(amount+reward,CScript() << ParseHex(HexStr(mypk)) << OP_CHECKSIG));