// // Created by mwo on 16/05/17. // #ifndef XMRBLOCKS_CURRENTBLOCKCHAINSTATUS_H #define XMRBLOCKS_CURRENTBLOCKCHAINSTATUS_H #include "MicroCore.h" #include #include #include #include #include #include namespace xmreg { using namespace std; struct CurrentBlockchainStatus { static string blockchain_path; static bool testnet; static string output_file; static string deamon_url; static uint64_t blockchain_chunk_size; static atomic current_height; static atomic total_emission_amount; static atomic total_fee_amount; static atomic searched_blk_no; static std::thread m_thread; static atomic is_running; // make object for accessing the blockchain here static unique_ptr mcore; static cryptonote::Blockchain *core_storage; static void start_monitor_blockchain_thread(); static bool init_monero_blockchain(); static void update_current_emission_amount(); static bool save_current_emission_amount(); static bool load_current_emission_amount(); static vector get_emission_amount(); static string get_output_file_path(); static bool is_thread_running(); }; } #endif //XMRBLOCKS_CURRENTBLOCKCHAINSTATUS_H