Fix
This commit is contained in:
@@ -1026,7 +1026,7 @@ UniValue TokenInfo(uint256 tokenid)
|
||||
UniValue TokenList()
|
||||
{
|
||||
UniValue result(UniValue::VARR);
|
||||
std::vector<std::pair<CAddressIndexKey, CAmount> > addressIndex;
|
||||
std::vector<uint256> txids;
|
||||
std::vector<std::pair<CAddressUnspentKey, CAddressUnspentValue> > addressIndexCCMarker;
|
||||
|
||||
struct CCcontract_info *cp, C; uint256 txid, hashBlock;
|
||||
@@ -1043,9 +1043,9 @@ UniValue TokenList()
|
||||
}
|
||||
};
|
||||
|
||||
SetCCtxids(addressIndex, cp->normaladdr,false); // find by old normal addr marker
|
||||
for (std::vector<std::pair<CAddressIndexKey, CAmount> >::const_iterator it = addressIndex.begin(); it != addressIndex.end(); it++) {
|
||||
addTokenId(it->first.txhash);
|
||||
SetCCtxids(txids, cp->normaladdr,false,cp->evalcode,zeroid,'c'); // find by old normal addr marker
|
||||
for (std::vector<uint256>::const_iterator it = txids.begin(); it != txids.end(); it++) {
|
||||
addTokenId(*it);
|
||||
}
|
||||
|
||||
SetCCunspents(addressIndexCCMarker, cp->unspendableCCaddr,true); // find by burnable validated cc addr marker
|
||||
|
||||
Reference in New Issue
Block a user