Guard tokenid setting

This commit is contained in:
jl777
2019-02-10 10:02:52 -11:00
parent 88eb8db62e
commit 365c053dc5

View File

@@ -702,7 +702,8 @@ UniValue rogue_register(uint64_t txfee,struct CCcontract_info *cp,cJSON *params)
if ( DecodeTokenOpRet(playertx.vout.back().scriptPubKey, e, tokenid, voutPubkeys, vopretFinish, vopret2) != 0)
{ // if token in the opret
didtx = 1;
tokenid = playertxid;
if ( tokenid == zeroid )
tokenid = playertxid;
rawtx = FinalizeCCTx(0, cp, mtx, mypk, txfee,
EncodeTokenOpRet(tokenid, voutPubkeysEmpty /*=never spent*/, vopretFinish /*=non-fungible*/, opretRegister));
}