From 2bf8d3b8d1433be2909df294d4897bec4c5e4b32 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 11 Sep 2018 06:54:09 -1100 Subject: [PATCH] Test --- src/cc/dapps/oraclefeed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/dapps/oraclefeed.c b/src/cc/dapps/oraclefeed.c index fae9773a7..3a5dbed6b 100644 --- a/src/cc/dapps/oraclefeed.c +++ b/src/cc/dapps/oraclefeed.c @@ -345,7 +345,7 @@ void komodobroadcast(char *acname,cJSON *hexjson) int32_t get_KMDheight() { - cJSON *retjson; char *retstr; int32_t height; + cJSON *retjson; char *retstr; int32_t height=0; if ( (retjson= get_komodocli(&retstr,"","getinfo","","","")) != 0 ) { height = jint(retjson,"blocks"); @@ -357,7 +357,7 @@ int32_t get_KMDheight() fprintf(stderr,"get_KMDheight error.(%s)\n",retstr); free(retstr); } - return(0); + return(height); } bits256 get_KMDblockhash(int32_t height)