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

Commit

Permalink
Merge pull request #7384 from EOSIO/fix_ship_get_block_segfault
Browse files Browse the repository at this point in the history
fix ship segfault in get_block, #7136
  • Loading branch information
tbfleming committed May 20, 2019
2 parents 2241b1f + 761cfd8 commit 9524204
Showing 1 changed file with 2 additions and 1 deletion.
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 @@ -149,7 +149,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

0 comments on commit 9524204

Please sign in to comment.