diff --git a/src/cc/CCtx.cpp b/src/cc/CCtx.cpp index 79c4572a1..bd036d115 100644 --- a/src/cc/CCtx.cpp +++ b/src/cc/CCtx.cpp @@ -119,13 +119,13 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran cond = othercond; //fprintf(stderr,"unspendable CC addr.(%s)\n",unspendable); } - else if ( strcmp(destaddr,cp->unspendable2) == 0 ) + else if ( strcmp(destaddr,cp->unspendableaddr2) == 0 ) { - fprintf(stderr,"matched %s unspendable2!\n",cp->unspendable2); + fprintf(stderr,"matched %s unspendable2!\n",cp->unspendableaddr2); privkey = cp->unspendablepriv2; if ( othercond2 == 0 ) - otherconds = MakeCCcond1(cp->evalcode,cp->unspendablepk2); - cond = othercond; + othercond2 = MakeCCcond1(cp->evalcode,cp->unspendablepk2); + cond = othercond2; } else {