From 0aa62612aadd62fe11811a45c0a1b15608b804a5 Mon Sep 17 00:00:00 2001 From: dimxy Date: Tue, 9 Apr 2019 19:21:04 +0500 Subject: [PATCH] log --- src/cc/prices.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cc/prices.cpp b/src/cc/prices.cpp index c1775973a..cc85fdc17 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -355,7 +355,7 @@ int64_t prices_syntheticprice(std::vector vec,int32_t height,int32_t m { opcode = vec[i]; value = (opcode & (KOMODO_MAXPRICES-1)); // index or weight - std::cerr << "prices_syntheticprice" << " i=" << i << " price=" << price << " value=" << value << " pricestack[depth=" << depth << "]=" << pricestack[depth] << std::endl; + std::cerr << "prices_syntheticprice" << " i=" << i << " price=" << price << " value=" << value << " depth=" << depth << std::endl; switch( opcode & KOMODO_PRICEMASK ) { case 0: // indices @@ -376,7 +376,6 @@ int64_t prices_syntheticprice(std::vector vec,int32_t height,int32_t m if ( pricestack[depth] == 0 ) errcode = -1; - std::cerr << "pricestack[depth=" << depth << "]=" << pricestack[depth] << std::endl; depth++; break; @@ -469,6 +468,9 @@ int64_t prices_syntheticprice(std::vector vec,int32_t height,int32_t m } if (errcode != 0) break; + + std::cerr << "pricestack[depth-1=" << depth-1 << "]=" << pricestack[depth-1] << std::endl; + } free(pricedata);