Add support for EVAL_HEIR
This commit is contained in:
@@ -137,9 +137,9 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran
|
|||||||
{
|
{
|
||||||
//fprintf(stderr,"matched %s unspendable2!\n",cp->unspendableaddr2);
|
//fprintf(stderr,"matched %s unspendable2!\n",cp->unspendableaddr2);
|
||||||
privkey = cp->unspendablepriv2;
|
privkey = cp->unspendablepriv2;
|
||||||
if ( othercond2 == 0 && cp->evalcode != EVAL_CHANNELS)
|
if ( othercond2 == 0 && cp->evalcode != EVAL_CHANNELS && cp->evalcode != EVAL_HEIR )
|
||||||
othercond2 = MakeCCcond1(cp->evalcode2,cp->unspendablepk2);
|
othercond2 = MakeCCcond1(cp->evalcode2,cp->unspendablepk2);
|
||||||
else if ( othercond2 == 0 && cp->evalcode == EVAL_CHANNELS)
|
else if ( othercond2 == 0 && (cp->evalcode == EVAL_CHANNELS || cp->evalcode == EVAL_HEIR) )
|
||||||
othercond2 = MakeCCcond1of2(cp->evalcode2,cp->unspendablepk2,cp->unspendablepk3);
|
othercond2 = MakeCCcond1of2(cp->evalcode2,cp->unspendablepk2,cp->unspendablepk3);
|
||||||
cond = othercond2;
|
cond = othercond2;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user