diff --git a/plugins/state_history_plugin/state_history_plugin.cpp b/plugins/state_history_plugin/state_history_plugin.cpp index 7ef9a09fe3f40b250f1aec17980df6fb64c3589c..ff10add37e78e05ed5f0d3f17933aab630567b4f 100644 --- a/plugins/state_history_plugin/state_history_plugin.cpp +++ b/plugins/state_history_plugin/state_history_plugin.cpp @@ -624,6 +624,17 @@ struct state_history_plugin_impl : std::enable_shared_from_this { std::shared_ptr plugin; std::unique_ptr> stream; @@ -715,6 +726,11 @@ struct state_history_plugin_impl : std::enable_shared_from_thisdeltas.begin(), it->deltas.end()); // dlog(" bytes: ${b}", ("b", result.deltas)); + } else if (req.block_num >= plugin->irreversible_begin_block && + req.block_num < plugin->irreversible_end_block) { + irrev_state_log_header header; + plugin->get_irreversible(req.block_num, header, result.deltas); + result.found = true; } send(std::move(result)); }