Browse Source

Fix compiler issue

pull/4/head
jl777 6 years ago
parent
commit
2e84ef9136
  1. 2
      src/cc/CCcustom.inc
  2. 2
      src/cc/rewards.cpp

2
src/cc/CCcustom.inc

@ -5,7 +5,7 @@ bool FUNCNAME(CScript const& scriptSig)
if (!(cond = GetCryptoCondition(scriptSig)))
return false;
// Recurse the CC tree to find asset condition
auto findEval = [&] (CC *cond, struct CCVisitor _) {
auto findEval = [] (CC *cond, struct CCVisitor _) {
bool r = cc_typeId(cond) == CC_Eval && cond->codeLength == 1 && cond->code[0] == EVALCODE;
// false for a match, true for continue
return r ? 0 : 1;

2
src/cc/rewards.cpp

@ -245,7 +245,7 @@ std::string RewardsFund(uint64_t txfee,char *planstr,uint64_t funds,uint64_t APR
mypk = pubkey2pk(Mypubkey());
rewardspk = GetUnspendable(cp,0);
funding = RewardsPlanFunds(sbits,cp,rewardspk,planstr);
if ( AddNormalinputs(mtx,mypk,funds+2*txfee,64) > 0 )
if ( AddNormalinputs(mtx,mypk,funds+txfee,64) > 0 )
{
mtx.vout.push_back(MakeCC1vout(cp->evalcode,funds,rewardspk));
mtx.vout.push_back(CTxOut(APR,CScript() << ParseHex(HexStr(rewardspk)) << OP_CHECKSIG));

Loading…
Cancel
Save