Hush Full Node software. We were censored from Github, this is where all development happens now.
https://hush.is
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
540 B
17 lines
540 B
|
|
bool FUNCNAME(CScript const& scriptSig)
|
|
{
|
|
CC *cond;
|
|
if (!(cond = GetCryptoCondition(scriptSig)))
|
|
return false;
|
|
// Recurse the CC tree to find asset condition
|
|
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;
|
|
};
|
|
CCVisitor visitor = {findEval, (uint8_t*)"", 0, NULL};
|
|
bool out =! cc_visit(cond, visitor);
|
|
cc_free(cond);
|
|
return out;
|
|
}
|
|
|