Skip to content

Commit

Permalink
GH-418 Keep default as true for testing_allow_voting
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Jul 26, 2024
1 parent 0c5f170 commit ee76f64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ struct controller_impl {
named_thread_pool<chain> thread_pool;
deep_mind_handler* deep_mind_logger = nullptr;
bool okay_to_print_integrity_hash_on_stop = false;
bool testing_allow_voting = false; // used in unit tests to create long forks or simulate not getting votes
bool testing_allow_voting = true; // used in unit tests to create long forks or simulate not getting votes
async_t async_voting = async_t::yes; // by default we post `create_and_send_vote_msg()` calls, used in tester
async_t async_aggregation = async_t::yes; // by default we process incoming votes asynchronously
my_finalizers_t my_finalizers;
Expand Down
1 change: 0 additions & 1 deletion libraries/testing/tester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ namespace eosio::testing {

control.reset( new controller(cfg, std::move(pfs), *expected_chain_id) );
control->add_indices();
control->testing_allow_voting(true);
if (lambda) lambda();
chain_transactions.clear();
[[maybe_unused]] auto accepted_block_connection = control->accepted_block().connect([this]( block_signal_params t ){
Expand Down

0 comments on commit ee76f64

Please sign in to comment.