From 26dddaac894c0fff7ae2e316cdc46ddc955fd83a Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 12 Apr 2019 08:31:44 -1100 Subject: [PATCH] Skip timestamp for now --- src/komodo_gateway.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index e30ee8d00..4dfba5392 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -2028,20 +2028,20 @@ int32_t get_stockprices(uint32_t now,uint32_t *prices,std::vector s obj = jitem(json,i); if ( (symbol= jstr(obj,(char *)"symbol")) != 0 ) { - timestamp = j64bits(obj,(char *)"time"); uprice = jdouble(obj,(char *)"price")*100 + 0.0049; prices[i] = uprice; + /*timestamp = j64bits(obj,(char *)"time"); if ( timestamp > now+60 || timestamp < now-ASSETCHAINS_BLOCKTIME ) { fprintf(stderr,"time error.%d (%u vs %u)\n",timestamp-now,timestamp,now); retval = -1; - } + }*/ if ( symbols[i] != symbol ) { retval = -1; fprintf(stderr,"MISMATCH."); } - fprintf(stderr,"(%s %u).%d ",symbol,uprice,timestamp-now); + fprintf(stderr,"(%s %u) ",symbol,uprice); } } fprintf(stderr,"numstocks.%d\n",n);