Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

fix ship segfault in get_block, #7136 #7384

Merged
merged 1 commit into from
May 20, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion plugins/state_history_plugin/state_history_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ struct state_history_plugin_impl : std::enable_shared_from_this<state_history_pl
} catch (...) {
return;
}
result = fc::raw::pack(*p);
if (p)
result = fc::raw::pack(*p);
}

fc::optional<chain::block_id_type> get_block_id(uint32_t block_num) {
Expand Down