fix for invalid lambda cast in CCcustom

This commit is contained in:
Scott Sadler
2018-07-25 12:10:33 -03:00
parent 2b47a1d4a4
commit 446265cc5f

View File

@@ -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;