File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -72,8 +72,8 @@ class BCN_API settings
7272 settings (system::chain::selection context) NOEXCEPT;
7373
7474 // / Properties.
75+ bool priority;
7576 bool headers_first;
76- bool priority_validation;
7777 float allowed_deviation;
7878 uint16_t allocation_multiple;
7979 uint64_t snapshot_bytes;
Original file line number Diff line number Diff line change @@ -906,8 +906,8 @@ options_metadata parser::load_settings() THROWS
906906 " The number of threads in the validation threadpool, defaults to 16."
907907 )
908908 (
909- " node.priority_validation " ,
910- value<bool >(&configured.node .priority_validation ),
909+ " node.priority " ,
910+ value<bool >(&configured.node .priority ),
911911 " Set the validation threadpool to high priority, defaults to true."
912912 )
913913 (
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ std::filesystem::path settings::events_file() const NOEXCEPT
7575namespace node {
7676
7777settings::settings () NOEXCEPT
78- : headers_first { true },
79- priority_validation { true },
78+ : priority { true },
79+ headers_first { true },
8080 allowed_deviation{ 1.5 },
8181 allocation_multiple{ 20 },
8282 snapshot_bytes{ 200'000'000'000 },
@@ -123,7 +123,7 @@ network::wall_clock::duration settings::currency_window() const NOEXCEPT
123123
124124network::thread_priority settings::priority_ () const NOEXCEPT
125125{
126- return priority_validation ? network::thread_priority::high :
126+ return priority ? network::thread_priority::high :
127127 network::thread_priority::normal;
128128}
129129
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ BOOST_AUTO_TEST_CASE(settings__node__default_context__expected)
5454 using namespace network ;
5555
5656 const node::settings node{};
57+ BOOST_REQUIRE_EQUAL (node.priority , true );
5758 BOOST_REQUIRE_EQUAL (node.headers_first , true );
58- BOOST_REQUIRE_EQUAL (node.priority_validation , true );
5959 BOOST_REQUIRE_EQUAL (node.allowed_deviation , 1.5 );
6060 BOOST_REQUIRE_EQUAL (node.maximum_height , 0_u32);
6161 BOOST_REQUIRE_EQUAL (node.allocation_multiple , 20_u16);
@@ -74,7 +74,7 @@ BOOST_AUTO_TEST_CASE(settings__node__default_context__expected)
7474 BOOST_REQUIRE_EQUAL (node.maximum_concurrency_ (), 50' 000_size);
7575 BOOST_REQUIRE (node.sample_period () == steady_clock::duration (seconds (10 )));
7676 BOOST_REQUIRE (node.currency_window () == steady_clock::duration (minutes (60 )));
77- BOOST_REQUIRE (node.priority_ () == network::thread_priority::normal );
77+ BOOST_REQUIRE (node.priority_ () == network::thread_priority::high );
7878}
7979
8080BOOST_AUTO_TEST_SUITE_END ()
You can’t perform that action at this time.
0 commit comments