From 2e84ef913613f041135f634573cff3b5449c0dd9 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 25 Jul 2018 04:14:23 -1100 Subject: [PATCH] Fix compiler issue --- src/cc/CCcustom.inc | 2 +- src/cc/rewards.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/CCcustom.inc b/src/cc/CCcustom.inc index a5a88f1eb..c33ca4f5b 100644 --- a/src/cc/CCcustom.inc +++ b/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; diff --git a/src/cc/rewards.cpp b/src/cc/rewards.cpp index b595a0423..e21fac274 100644 --- a/src/cc/rewards.cpp +++ b/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));