This commit is contained in:
jl777
2018-09-10 08:11:12 -11:00
parent d283511ce5
commit 2dcf5c8b29
2 changed files with 3 additions and 1 deletions

View File

@@ -121,7 +121,7 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran
}
else if ( strcmp(destaddr,cp->unspendableaddr2) == 0 )
{
//fprintf(stderr,"matched %s unspendable2!\n",cp->unspendableaddr2);
fprintf(stderr,"matched %s unspendable2!\n",cp->unspendableaddr2);
privkey = cp->unspendablepriv2;
if ( othercond2 == 0 )
othercond2 = MakeCCcond1(cp->evalcode2,cp->unspendablepk2);

View File

@@ -561,6 +561,8 @@ std::string GatewaysClaim(uint64_t txfee,uint256 bindtxid,std::string refcoin,ui
_GetCCaddress(cp->unspendableaddr2,EVAL_ASSETS,gatewayspk);
memcpy(cp->unspendablepriv2,cp->CCpriv,32);
assetscp->evalcode2 = cp->evalcode2 = EVAL_ASSETS;
assetscp->unspendablepk2 = gatewayspk;
cp->unspendablepk2 = gatewayspk;
memcpy(assetscp->unspendablepriv2,cp->CCpriv,32);
strcpy(assetscp->unspendableaddr2,cp->unspendableaddr2);
if ( GetTransaction(bindtxid,tx,hashBlock,false) == 0 || (numvouts= tx.vout.size()) <= 0 )