]> Git Repo - VerusCoin.git/blob - src/cc/CCcustom.inc
Merge pull request #44 from jl777/dev
[VerusCoin.git] / src / cc / CCcustom.inc
1
2 bool FUNCNAME(CScript const& scriptSig)
3 {
4     CC *cond;
5     if (!(cond = GetCryptoCondition(scriptSig)))
6         return false;
7     // Recurse the CC tree to find asset condition
8     auto findEval = [] (CC *cond, struct CCVisitor _) {
9     bool r = cc_typeId(cond) == CC_Eval && cond->codeLength == 1 && cond->code[0] == EVALCODE;
10     // false for a match, true for continue
11     return r ? 0 : 1;
12     };
13     CCVisitor visitor = {findEval, (uint8_t*)"", 0, NULL};
14     bool out =! cc_visit(cond, visitor);
15     cc_free(cond);
16     return out;
17 }
This page took 0.023016 seconds and 4 git commands to generate.