Skip to content

Commit

Permalink
Add debug_assert that it is only used in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wezrule committed Sep 22, 2020
1 parent 2374dd8 commit 5d37aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nano/node/confirmation_height_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ void nano::confirmation_height_processor::run (confirmation_height_mode mode_a)
}
else
{
// Pausing is only utilised in some tests to help prevent it processing added blocks until required.
debug_assert (network_params.network.is_dev_network ());
original_hash.clear ();
condition.wait (lk);
}
Expand Down
1 change: 1 addition & 0 deletions nano/node/confirmation_height_processor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ class confirmation_height_processor final
nano::write_database_queue & write_database_queue;
/** The maximum amount of blocks to write at once. This is dynamically modified by the bounded processor based on previous write performance **/
uint64_t batch_write_size{ 16384 };
nano::network_params network_params;

confirmation_height_unbounded unbounded_processor;
confirmation_height_bounded bounded_processor;
Expand Down

0 comments on commit 5d37aca

Please # to comment.