1
0
Fork 0
forked from lthn/blockchain

fixed api

This commit is contained in:
crypro.zoidberg 2019-01-25 20:32:15 +03:00
parent d230ceaeb0
commit 2822fa521e

View file

@ -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
{