From 027662268df016a645de71a6c5ff21dd3db4da4c Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 10 Apr 2019 21:11:27 -1100 Subject: [PATCH] Move pricesinit --- src/bitcoind.cpp | 2 ++ src/komodo_utils.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 4e010d28e..68e0da8b3 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -70,6 +70,8 @@ void WaitForShutdown(boost::thread_group* threadGroup) { int32_t i; bool fShutdown = ShutdownRequested(); // Tell the main threads to shutdown. + if ( ASSETCHAINS_CBOPRET != 0 ) + komodo_pricesinit(); while (!fShutdown) { //fprintf(stderr,"call passport iteration\n"); diff --git a/src/komodo_utils.h b/src/komodo_utils.h index 700615ee1..043d7282e 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -2082,7 +2082,6 @@ void komodo_args(char *argv0) extralen += symbol.size(); } } - komodo_pricesinit(); komodo_cbopretupdate(1); // will set Mineropret fprintf(stderr,"This blockchain uses data produced from CoinDesk Bitcoin Price Index\n"); }