corr FillSell self now single-eval token addr
This commit is contained in:
@@ -735,7 +735,7 @@ std::string FillSell(int64_t txfee, uint256 assetid, uint256 assetid2, uint256 a
|
|||||||
CCchange = (inputs - paid_nValue);
|
CCchange = (inputs - paid_nValue);
|
||||||
|
|
||||||
mtx.vout.push_back(MakeTokensCC1vout(EVAL_ASSETS, orig_assetoshis - received_assetoshis, GetUnspendable(cpAssets, NULL))); // vout.0 tokens remainder to unspendable cc addr
|
mtx.vout.push_back(MakeTokensCC1vout(EVAL_ASSETS, orig_assetoshis - received_assetoshis, GetUnspendable(cpAssets, NULL))); // vout.0 tokens remainder to unspendable cc addr
|
||||||
mtx.vout.push_back(MakeTokensCC1vout(EVAL_ASSETS, received_assetoshis, mypk)); //vout.1 purchased tokens to self
|
mtx.vout.push_back(MakeCC1vout(EVAL_TOKENS, received_assetoshis, mypk)); //vout.1 purchased tokens to self single-eval addr
|
||||||
|
|
||||||
// NOTE: no marker here
|
// NOTE: no marker here
|
||||||
|
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ bool AssetsValidate(struct CCcontract_info *cpAssets,Eval* eval,const CTransacti
|
|||||||
int32_t i,starti,numvins,numvouts,preventCCvins,preventCCvouts;
|
int32_t i,starti,numvins,numvouts,preventCCvins,preventCCvouts;
|
||||||
int64_t remaining_price,nValue,assetoshis,outputs,inputs,tmpprice,totalunits,ignore; std::vector<uint8_t> origpubkey,tmporigpubkey,ignorepubkey;
|
int64_t remaining_price,nValue,assetoshis,outputs,inputs,tmpprice,totalunits,ignore; std::vector<uint8_t> origpubkey,tmporigpubkey,ignorepubkey;
|
||||||
uint8_t funcid, evalCodeInOpret;
|
uint8_t funcid, evalCodeInOpret;
|
||||||
char destaddr[64], origaddr[64], assetsCCaddr[64], userTokensCCaddr[64], signleEvalTokensCCaddr[64];
|
char destaddr[64], origaddr[64], assetsCCaddr[64], userTokensCCaddr[64]; //, signleEvalTokensCCaddr[64];
|
||||||
|
|
||||||
//return true;
|
//return true;
|
||||||
|
|
||||||
@@ -161,7 +161,7 @@ bool AssetsValidate(struct CCcontract_info *cpAssets,Eval* eval,const CTransacti
|
|||||||
cpTokens = CCinit(&tokensC, EVAL_TOKENS);
|
cpTokens = CCinit(&tokensC, EVAL_TOKENS);
|
||||||
|
|
||||||
// find single-eval token user cc addr:
|
// find single-eval token user cc addr:
|
||||||
GetCCaddress(cpTokens, signleEvalTokensCCaddr, pubkey2pk(origpubkey));
|
//GetCCaddress(cpTokens, signleEvalTokensCCaddr, pubkey2pk(origpubkey));
|
||||||
|
|
||||||
fprintf(stderr,"AssetValidate (%c)\n",funcid);
|
fprintf(stderr,"AssetValidate (%c)\n",funcid);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user