20{
22
25
26 response.result = std::move(res.
result);
28
29 sysio::print("get_latest_block_batch_info: response error_code = ", response.error_code.value, "\n");
30 if (response.result.has_value()) {
31 const auto& result = *response.result;
32 sysio::print("get_latest_block_batch_info: response result:\n");
33 sysio::print(" batch_start_height = ", result.batch_start_height, "\n");
34 sysio::print(" batch_current_end_height = ", result.batch_current_end_height, "\n");
35 }
36
37 return response;
38}
latest_block_batch_info_result get_latest_block_batch_info(uint32_t batch_start_height_offset, uint32_t batch_size, sysio::name system_account_name="sysio"_n)
error_code_enum error_code
std::optional< block_batch_info > result
Output data structure for get_latest_block_batch_info RPC.