Skip to content

Commit a5072ab

Browse files
committed
Remove mature_, concurrent_, and associated settings.
1 parent 17f9dc0 commit a5072ab

File tree

8 files changed

+9
-53
lines changed

8 files changed

+9
-53
lines changed

include/bitcoin/node/chasers/chaser_confirm.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,10 @@ class BCN_API chaser_confirm
8585
size_t fork_point) const NOEXCEPT;
8686

8787
// These are protected by strand.
88-
bool mature_{};
8988
network::threadpool threadpool_;
9089

9190
// These are thread safe.
9291
network::asio::strand independent_strand_;
93-
const bool concurrent_;
9492
bool prevout_;
9593
};
9694

include/bitcoin/node/chasers/chaser_validate.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class BCN_API chaser_validate
7575
}
7676

7777
// These are protected by strand.
78-
bool mature_{};
7978
size_t backlog_{};
8079
network::threadpool threadpool_;
8180

@@ -84,7 +83,6 @@ class BCN_API chaser_validate
8483
const uint32_t subsidy_interval_;
8584
const uint64_t initial_subsidy_;
8685
const size_t maximum_backlog_;
87-
const bool concurrent_;
8886
const bool filter_;
8987
};
9088

include/bitcoin/node/settings.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ class BCN_API settings
7474
/// Properties.
7575
bool headers_first;
7676
bool priority_validation;
77-
bool concurrent_validation;
78-
bool concurrent_confirmation;
7977
float allowed_deviation;
8078
uint16_t allocation_multiple;
8179
uint64_t snapshot_bytes;

src/chasers/chaser_confirm.cpp

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ chaser_confirm::chaser_confirm(full_node& node) NOEXCEPT
4444
: chaser(node),
4545
threadpool_(one, node.config().node.priority_()),
4646
independent_strand_(threadpool_.service().get_executor()),
47-
concurrent_(node.config().node.concurrent_confirmation),
4847
prevout_(node.archive().prevout_enabled())
4948
{
5049
}
@@ -92,34 +91,21 @@ bool chaser_confirm::handle_event(const code&, chase event_,
9291
////{
9392
//// BC_ASSERT(std::holds_alternative<height_t>(value));
9493
////
95-
//// if (concurrent_ || mature_)
96-
//// {
97-
//// // TODO: value is branch point.
98-
//// POST(do_validated, std::get<height_t>(value));
99-
//// }
100-
////
94+
//// // TODO: value is branch point.
95+
//// POST(do_validated, std::get<height_t>(value));
10196
//// break;
10297
////}
10398
case chase::start:
10499
case chase::bump:
105100
{
106-
if (concurrent_ || mature_)
107-
{
108-
POST(do_bump, height_t{});
109-
}
110-
101+
POST(do_bump, height_t{});
111102
break;
112103
}
113104
case chase::valid:
114105
{
115106
// value is validated block height.
116107
BC_ASSERT(std::holds_alternative<height_t>(value));
117-
118-
if (concurrent_ || mature_)
119-
{
120-
POST(do_validated, std::get<height_t>(value));
121-
}
122-
108+
POST(do_validated, std::get<height_t>(value));
123109
break;
124110
}
125111
case chase::regressed:

src/chasers/chaser_validate.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ chaser_validate::chaser_validate(full_node& node) NOEXCEPT
4848
subsidy_interval_(node.config().bitcoin.subsidy_interval_blocks),
4949
initial_subsidy_(node.config().bitcoin.initial_subsidy()),
5050
maximum_backlog_(node.config().node.maximum_concurrency_()),
51-
concurrent_(node.config().node.concurrent_validation),
5251
filter_(node.archive().neutrino_enabled())
5352
{
5453
}
@@ -95,23 +94,14 @@ bool chaser_validate::handle_event(const code&, chase event_,
9594
case chase::start:
9695
case chase::bump:
9796
{
98-
if (concurrent_ || mature_)
99-
{
100-
POST(do_bump, height_t{});
101-
}
102-
97+
POST(do_bump, height_t{});
10398
break;
10499
}
105100
case chase::checked:
106101
{
107102
// value is checked block height.
108103
BC_ASSERT(std::holds_alternative<height_t>(value));
109-
110-
if (concurrent_ || mature_)
111-
{
112-
POST(do_checked, std::get<height_t>(value));
113-
}
114-
104+
POST(do_checked, std::get<height_t>(value));
115105
break;
116106
}
117107
case chase::regressed:

src/parser.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -908,17 +908,7 @@ options_metadata parser::load_settings() THROWS
908908
(
909909
"node.priority_validation",
910910
value<bool>(&configured.node.priority_validation),
911-
"Set the validation threadpool to high priority, defaults to false."
912-
)
913-
(
914-
"node.concurrent_validation",
915-
value<bool>(&configured.node.concurrent_validation),
916-
"Perform validation concurrently with download, defaults to false."
917-
)
918-
(
919-
"node.concurrent_confirmation",
920-
value<bool>(&configured.node.concurrent_confirmation),
921-
"Perform confirmation concurrently with download, defaults to false."
911+
"Set the validation threadpool to high priority, defaults to true."
922912
)
923913
(
924914
"node.headers_first",

src/settings.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ namespace node {
7676

7777
settings::settings() NOEXCEPT
7878
: headers_first{ true },
79-
priority_validation{ false },
80-
concurrent_validation{ false },
81-
concurrent_confirmation{ false },
79+
priority_validation{ true },
8280
allowed_deviation{ 1.5 },
8381
allocation_multiple{ 20 },
8482
snapshot_bytes{ 200'000'000'000 },

test/settings.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ BOOST_AUTO_TEST_CASE(settings__node__default_context__expected)
5555

5656
const node::settings node{};
5757
BOOST_REQUIRE_EQUAL(node.headers_first, true);
58-
BOOST_REQUIRE_EQUAL(node.priority_validation, false);
59-
BOOST_REQUIRE_EQUAL(node.concurrent_validation, false);
60-
BOOST_REQUIRE_EQUAL(node.concurrent_confirmation, false);
58+
BOOST_REQUIRE_EQUAL(node.priority_validation, true);
6159
BOOST_REQUIRE_EQUAL(node.allowed_deviation, 1.5);
6260
BOOST_REQUIRE_EQUAL(node.maximum_height, 0_u32);
6361
BOOST_REQUIRE_EQUAL(node.allocation_multiple, 20_u16);

0 commit comments

Comments
 (0)