This commit is contained in:
jl777
2018-07-22 03:06:53 -11:00
parent 2e482a0e68
commit ea06d536b1
5 changed files with 20 additions and 20 deletions

View File

@@ -37,23 +37,6 @@ bool IsCCInput(CScript const& scriptSig)
return true;
}
bool IsEvalInput(uint8_t evalcode,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;
}
uint256 revuint256(uint256 txid)
{
uint256 revtxid; int32_t i;