From dec5613c96d5441df33bbcf2f40e32eea325182d Mon Sep 17 00:00:00 2001 From: dimxy Date: Fri, 3 May 2019 10:32:26 +0500 Subject: [PATCH] costbasis test period info in json --- src/cc/prices.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cc/prices.cpp b/src/cc/prices.cpp index 37186e987..0b7c8a873 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -1801,6 +1801,9 @@ UniValue PricesInfo(uint256 bettxid, int32_t refheight) result.push_back(Pair("reduced", prices_getreducedexpr(expr))); result.push_back(Pair("batontxid", batontxid.GetHex())); result.push_back(Pair("costbasis", ValueFromAmount(averageCostbasis))); +#ifdef TESTMODE + result.push_back(Pair("costbasis_test_period", 7)); +#endif prices_betjson(result, bets, leverage, endheight, lastprice);