From 2822fa521ee48c63803d4b45f815ffc03785a490 Mon Sep 17 00:00:00 2001 From: "crypro.zoidberg" Date: Fri, 25 Jan 2019 20:32:15 +0300 Subject: [PATCH] fixed api --- src/daemon/daemon_commands_handler.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/daemon/daemon_commands_handler.h b/src/daemon/daemon_commands_handler.h index 7d95252e..46623a1e 100644 --- a/src/daemon/daemon_commands_handler.h +++ b/src/daemon/daemon_commands_handler.h @@ -416,14 +416,13 @@ private: return false; } - currency::block_extended_info bei = AUTO_VAL_INIT(bei); - bool r = m_srv.get_payload_object().get_core().get_blockchain_storage().get_block_extended_info_by_hash(block_hash, bei); + currency::block_rpc_extended_info bei = AUTO_VAL_INIT(bei); + bool r = m_srv.get_payload_object().get_core().get_blockchain_storage().get_main_block_rpc_details(block_hash, bei); if (r) { // currency::block& block = bei.bl; - LOG_PRINT_GREEN("------------------ block_id: " << get_block_hash(bei.bl) << " ------------------" << ENDL << epee::serialization::store_t_to_json(bei) , LOG_LEVEL_0); - m_srv.get_payload_object().get_core().get_blockchain_storage().calc_tx_cummulative_blob(bei.bl); + LOG_PRINT_GREEN("------------------ block_id: " << bei.id << " ------------------" << ENDL << epee::serialization::store_t_to_json(bei) , LOG_LEVEL_0); } else {