Skip to content

Commit

Permalink
GH-1403 Only disable-replay-opts if chain-state-history is enabled as…
Browse files Browse the repository at this point in the history
… not actually needed for trace data.
  • Loading branch information
heifner committed Jul 28, 2023
1 parent 5510a78 commit 9cc01d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/state_history_plugin/state_history_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ void state_history_plugin_impl::plugin_initialize(const variables_map& options)
EOS_ASSERT(chain_plug, chain::missing_chain_plugin_exception, "");
auto& chain = chain_plug->chain();

if (!options.at("disable-replay-opts").as<bool>()) {
ilog("Setting disable-replay-opts=true required by state_history_plugin");
if (!options.at("disable-replay-opts").as<bool>() && options.at("chain-state-history").as<bool>()) {
ilog("Setting disable-replay-opts=true required by state_history_plugin chain-state-history=true option");
chain.disable_replay_opts();
}

Expand Down

0 comments on commit 9cc01d8

Please sign in to comment.