From aa2aaf51735371563494d9fdda53fa212430a8fd Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 3 Sep 2018 03:08:47 -1100 Subject: [PATCH] Fix --- src/cc/CCtx.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 {