corr addrindex

This commit is contained in:
dimxy
2019-04-26 00:01:59 +05:00
parent 7b17cd8a36
commit d1c206b347

View File

@@ -1341,7 +1341,7 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight)
UniValue PricesList(uint32_t filter, CPubKey mypk) UniValue PricesList(uint32_t filter, CPubKey mypk)
{ {
UniValue result(UniValue::VARR); UniValue result(UniValue::VARR);
std::vector<std::pair<CAddressIndexKey, CAmount> > addressIndex; std::vector<std::pair<CAddressIndexKey, CAmount> > addressIndex, addressIndexCC;
struct CCcontract_info *cp, C; struct CCcontract_info *cp, C;
@@ -1391,8 +1391,8 @@ UniValue PricesList(uint32_t filter, CPubKey mypk)
priceslist(it); priceslist(it);
} }
SetCCtxids(addressIndex, cp->unspendableCCaddr, true); // cc marker SetCCtxids(addressIndexCC, cp->unspendableCCaddr, true); // cc marker
for (std::vector<std::pair<CAddressIndexKey, CAmount> >::const_iterator it = addressIndex.begin(); it != addressIndex.end(); it++) for (std::vector<std::pair<CAddressIndexKey, CAmount> >::const_iterator it = addressIndexCC.begin(); it != addressIndexCC.end(); it++)
{ {
priceslist(it); priceslist(it);
} }