From 8a7f70639af9f42ea8d11ca148324358369d8370 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 20 Nov 2016 12:16:27 -0300 Subject: [PATCH] test --- src/komodo_bitcoind.h | 8 ++++++++ src/komodo_utils.h | 7 ------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index fdd383c33..80bb43f79 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -577,3 +577,11 @@ uint64_t komodo_accrued_interest(int32_t *txheightp,uint32_t *locktimep,uint256 } return(0); } + +int32_t komodo_isrealtime(int32_t *kmdheightp) +{ + *kmdheightp = (int32_t)chainActive.Tip()->nHeight; + if ( *kmdheightp != 0 && *kmdheightp == (int32_t)komodo_longestchain() ) + return(1); + else return(0); +} diff --git a/src/komodo_utils.h b/src/komodo_utils.h index 8d039fa54..c2b4f4b4f 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1512,12 +1512,5 @@ struct komodo_state *komodo_stateptr(char *symbol,char *dest) return(komodo_stateptrget(symbol)); } -int32_t komodo_isrealtime(int32_t *kmdheightp) -{ - *kmdheightp = (int32_t)chainActive.Tip()->nHeight; - if ( *kmdheightp != 0 && *kmdheightp == (int32_t)komodo_longestchain() ) - return(1); - else return(0); -}