File tree Expand file tree Collapse file tree 6 files changed +2
-15
lines changed
Expand file tree Collapse file tree 6 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,6 @@ class BCN_API chaser_validate
6565 const system::chain::block& block) NOEXCEPT;
6666
6767 // These are thread safe.
68- const bool prepopulate_;
6968 const bool concurrent_;
7069 const size_t maximum_backlog_;
7170 const uint64_t initial_subsidy_;
Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ class BCN_API settings
8686 uint16_t sample_period_seconds;
8787 uint32_t currency_window_minutes;
8888 uint32_t threads;
89- bool prepopulate;
9089
9190 // / Helpers.
9291 virtual size_t maximum_height_ () const NOEXCEPT;
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
4646// Higher priority than downloader (net) ensures locality to downloader writes.
4747chaser_validate::chaser_validate (full_node& node) NOEXCEPT
4848 : chaser(node),
49- prepopulate_ (node.config().node.prepopulate),
5049 concurrent_ (node.config().node.concurrent_validation),
5150 maximum_backlog_(node.config().node.maximum_concurrency_()),
5251 initial_subsidy_(node.config().bitcoin.initial_subsidy()),
@@ -239,10 +238,7 @@ void chaser_validate::validate_block(const header_link& link) NOEXCEPT
239238 return ;
240239 }
241240
242- // TODO: hardwire after performance evaluation with and without.
243- if (prepopulate_)
244- block->populate ();
245-
241+ block->populate ();
246242 if (!query.populate (*block))
247243 {
248244 // This could instead be a case of invalid milestone.
Original file line number Diff line number Diff line change @@ -891,11 +891,6 @@ options_metadata parser::load_settings() THROWS
891891 value<uint32_t >(&configured.node .threads ),
892892 " The number of threads in the validation threadpool, defaults to 16."
893893 )
894- (
895- " node.prepopulate" ,
896- value<bool >(&configured.node .prepopulate ),
897- " Populate block prevous from self before query [testing], defaults to true."
898- )
899894 (
900895 " node.priority_validation" ,
901896 value<bool >(&configured.node .priority_validation ),
Original file line number Diff line number Diff line change @@ -88,8 +88,7 @@ settings::settings() NOEXCEPT
8888 maximum_concurrency{ 50'000 },
8989 sample_period_seconds{ 10 },
9090 currency_window_minutes{ 60 },
91- threads{ 1 },
92- prepopulate{ true }
91+ threads{ 1 }
9392{
9493}
9594
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ BOOST_AUTO_TEST_CASE(settings__node__default_context__expected)
6969 BOOST_REQUIRE_EQUAL (node.maximum_concurrency_ (), 50000_size);
7070 BOOST_REQUIRE_EQUAL (node.sample_period_seconds , 10_u16);
7171 BOOST_REQUIRE_EQUAL (node.threads , 1_u32);
72- BOOST_REQUIRE_EQUAL (node.prepopulate , true );
7372 BOOST_REQUIRE (node.sample_period () == steady_clock::duration (seconds (10 )));
7473 BOOST_REQUIRE_EQUAL (node.currency_window_minutes , 60_u32);
7574 BOOST_REQUIRE (node.currency_window () == steady_clock::duration (minutes (60 )));
You can’t perform that action at this time.
0 commit comments