From b56dc25c8d95c93117af07e9e306e20a284929b5 Mon Sep 17 00:00:00 2001 From: dimxy Date: Tue, 23 Apr 2019 11:23:24 +0500 Subject: [PATCH] added logging to PricesList --- src/cc/prices.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cc/prices.cpp b/src/cc/prices.cpp index a22127fe9..999d35023 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -1172,10 +1172,10 @@ UniValue PricesList(uint32_t filter, CPubKey mypk) txid = it->first.txhash; if (GetTransaction(txid, vintx, hashBlock, false) != 0) { + bool bAppend = false; if (vintx.vout.size() > 0 && prices_betopretdecode(vintx.vout[vintx.vout.size() - 1].scriptPubKey, pk, height, amount, leverage, firstprice, vec, tokenid) == 'B' && (mypk == CPubKey() || mypk == pk)) // if only mypubkey to list { - bool bAppend = false; if (filter == 0) bAppend = true; else { @@ -1191,6 +1191,7 @@ UniValue PricesList(uint32_t filter, CPubKey mypk) if (bAppend) result.push_back(txid.GetHex()); } + std::cerr << "PricesList() " << " bettxid=" << txid.GetHex() << " mypk=" << HexStr(mypk) << " opret pk=" << HexStr(pk) << " filter=" << filter << " bAppend=" << bAppend << std::endl; } } return(result);