pricedata logging

This commit is contained in:
dimxy
2019-04-19 13:41:24 +05:00
parent d36e8227d0
commit 7f59d7c76e

View File

@@ -478,6 +478,7 @@ int64_t prices_syntheticprice(std::vector<uint16_t> vec, int32_t height, int32_t
pricestack[depth] = 0;
if (komodo_priceget(pricedata, value, height, 1) >= 0)
{
std::cerr << "prices_syntheticprice" << " pricedata[0]=" << pricedata[0] << " pricedata[1]=" << pricedata[1] << " pricedata[2]=" << pricedata[2] << std::endl;
// push price to the prices stack
if (!minmax)
pricestack[depth] = pricedata[2]; // use smoothed value if we are over 24h