Test
This commit is contained in:
@@ -121,7 +121,7 @@ std::string FinalizeCCTx(uint64_t CCmask,struct CCcontract_info *cp,CMutableTran
|
|||||||
}
|
}
|
||||||
else if ( strcmp(destaddr,cp->unspendableaddr2) == 0 )
|
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;
|
privkey = cp->unspendablepriv2;
|
||||||
if ( othercond2 == 0 )
|
if ( othercond2 == 0 )
|
||||||
othercond2 = MakeCCcond1(cp->evalcode2,cp->unspendablepk2);
|
othercond2 = MakeCCcond1(cp->evalcode2,cp->unspendablepk2);
|
||||||
|
|||||||
@@ -561,6 +561,8 @@ std::string GatewaysClaim(uint64_t txfee,uint256 bindtxid,std::string refcoin,ui
|
|||||||
_GetCCaddress(cp->unspendableaddr2,EVAL_ASSETS,gatewayspk);
|
_GetCCaddress(cp->unspendableaddr2,EVAL_ASSETS,gatewayspk);
|
||||||
memcpy(cp->unspendablepriv2,cp->CCpriv,32);
|
memcpy(cp->unspendablepriv2,cp->CCpriv,32);
|
||||||
assetscp->evalcode2 = cp->evalcode2 = EVAL_ASSETS;
|
assetscp->evalcode2 = cp->evalcode2 = EVAL_ASSETS;
|
||||||
|
assetscp->unspendablepk2 = gatewayspk;
|
||||||
|
cp->unspendablepk2 = gatewayspk;
|
||||||
memcpy(assetscp->unspendablepriv2,cp->CCpriv,32);
|
memcpy(assetscp->unspendablepriv2,cp->CCpriv,32);
|
||||||
strcpy(assetscp->unspendableaddr2,cp->unspendableaddr2);
|
strcpy(assetscp->unspendableaddr2,cp->unspendableaddr2);
|
||||||
if ( GetTransaction(bindtxid,tx,hashBlock,false) == 0 || (numvouts= tx.vout.size()) <= 0 )
|
if ( GetTransaction(bindtxid,tx,hashBlock,false) == 0 || (numvouts= tx.vout.size()) <= 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user