From c99acae5fa58b02f7ad945d3fca29aa7753f7f7a Mon Sep 17 00:00:00 2001 From: dimxy Date: Wed, 17 Apr 2019 19:55:30 +0500 Subject: [PATCH] switched to komodo_pricesget --- src/cc/prices.cpp | 2 +- src/komodo_defs.h | 2 +- src/komodo_gateway.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc/prices.cpp b/src/cc/prices.cpp index 600ef08a1..e9265c51a 100644 --- a/src/cc/prices.cpp +++ b/src/cc/prices.cpp @@ -472,7 +472,7 @@ int64_t prices_syntheticprice(std::vector vec, int32_t height, int32_t { case 0: // indices pricestack[depth] = 0; - if (prices_extract(pricedata, height, 1, value) == 0) + if (komodo_priceget(pricedata, height, 1, value) == 0) { // push price to the prices stack if (!minmax) diff --git a/src/komodo_defs.h b/src/komodo_defs.h index c42c725f8..2fcd29df3 100644 --- a/src/komodo_defs.h +++ b/src/komodo_defs.h @@ -101,7 +101,7 @@ int32_t komodo_dpowconfs(int32_t height,int32_t numconfs); int8_t komodo_segid(int32_t nocache,int32_t height); int32_t komodo_heightpricebits(uint64_t *seedp,uint32_t *heightbits,int32_t nHeight); char *komodo_pricename(char *name,int32_t ind); -int32_t komodo_priceind(char *symbol); +int32_t komodo_priceind(const char *symbol); int32_t komodo_pricesinit(); int64_t komodo_priceave(int64_t *tmpbuf,int64_t *correlated,int32_t cskip); int64_t komodo_pricecorrelated(uint64_t seed,int32_t ind,uint32_t *rawprices,int32_t rawskip,uint32_t *nonzprices,int32_t smoothwidth); diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 0ae1b6b44..1fafcc856 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -2401,7 +2401,7 @@ char *komodo_pricename(char *name,int32_t ind) return(0); } // finds index for its symbol name -int32_t komodo_priceind(char *symbol) +int32_t komodo_priceind(const char *symbol) { char name[65]; int32_t i,n = (int32_t)(komodo_cbopretsize(ASSETCHAINS_CBOPRET) / sizeof(uint32_t)); for (i=1; i