Fix compiler issue
This commit is contained in:
@@ -5,7 +5,7 @@ bool FUNCNAME(CScript const& scriptSig)
|
|||||||
if (!(cond = GetCryptoCondition(scriptSig)))
|
if (!(cond = GetCryptoCondition(scriptSig)))
|
||||||
return false;
|
return false;
|
||||||
// Recurse the CC tree to find asset condition
|
// 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;
|
bool r = cc_typeId(cond) == CC_Eval && cond->codeLength == 1 && cond->code[0] == EVALCODE;
|
||||||
// false for a match, true for continue
|
// false for a match, true for continue
|
||||||
return r ? 0 : 1;
|
return r ? 0 : 1;
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ std::string RewardsFund(uint64_t txfee,char *planstr,uint64_t funds,uint64_t APR
|
|||||||
mypk = pubkey2pk(Mypubkey());
|
mypk = pubkey2pk(Mypubkey());
|
||||||
rewardspk = GetUnspendable(cp,0);
|
rewardspk = GetUnspendable(cp,0);
|
||||||
funding = RewardsPlanFunds(sbits,cp,rewardspk,planstr);
|
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(MakeCC1vout(cp->evalcode,funds,rewardspk));
|
||||||
mtx.vout.push_back(CTxOut(APR,CScript() << ParseHex(HexStr(rewardspk)) << OP_CHECKSIG));
|
mtx.vout.push_back(CTxOut(APR,CScript() << ParseHex(HexStr(rewardspk)) << OP_CHECKSIG));
|
||||||
|
|||||||
Reference in New Issue
Block a user