{
std::vector<CC*> pks;
CC *condCC = CCNewEval(E_MARSHAL(ss << evalcode));
- return CCNewThreshold(1, {condCC});
+ CC *Sig = CCNewThreshold(0, pks);
+ return CCNewThreshold(2, {condCC, Sig});
}
CTxOut MakeCC1vout(uint8_t evalcode,CAmount nValue,CPubKey pk)
return CCNewThreshold(2, {condCC, Sig});
}
-CC *CCcond0(uint8_t evalcode, CPubKey pk)
+CC *CCcond0(uint8_t evalcode)
{
std::vector<CC*> pks;
- pks.push_back(CCNewSecp256k1(pk));
CC *condCC = CCNewEval(E_MARSHAL(ss << evalcode));
CC *Sig = CCNewThreshold(0, pks);
return CCNewThreshold(2, {condCC, Sig});