Fix oops
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user