Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/bitcoin/node/chasers/chaser_validate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ class BCN_API chaser_validate
const size_t maximum_backlog_;
const size_t maximum_height_;
const uint64_t batch_target_;
const bool allow_batch_race_;
const bool batch_enabled_;
const bool node_witness_;
const bool filter_;
Expand Down
1 change: 1 addition & 0 deletions include/bitcoin/node/settings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class BCN_API settings
bool thread_priority;
bool memory_priority;
bool allow_overlapped;
bool allow_batch_race;
float allowed_deviation;
float minimum_fee_rate;
float minimum_bump_rate;
Expand Down
1 change: 1 addition & 0 deletions src/chasers/chaser_validate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ chaser_validate::chaser_validate(full_node& node) NOEXCEPT
maximum_backlog_(node.node_settings().maximum_concurrency_()),
maximum_height_(node.node_settings().maximum_height_()),
batch_target_(node.node_settings().batch_signatures),
allow_batch_race_(node.node_settings().allow_batch_race),
batch_enabled_(node.node_settings().batch_signatures_enabled()),
node_witness_(node.network_settings().witness_node()),
filter_(node.archive().filter_enabled())
Expand Down
5 changes: 3 additions & 2 deletions src/chasers/chaser_validate_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ void chaser_validate::push_batch(const header_link& link, size_t height) NOEXCEP
batched_.push_back(link);
--batch_backlog_;

// Unblocks check chaser.
notify({}, chase::prevalid, possible_wide_cast<height_t>(height));
// Unblocks check chaser for download while verifying.
if (allow_batch_race_)
notify({}, chase::prevalid, possible_wide_cast<height_t>(height));

// Process both tables when one hits target, allowing batched_ clearance
// and therefore forward confirmation progress. Drain batch if no backlogs
Expand Down
1 change: 1 addition & 0 deletions src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ settings::settings() NOEXCEPT
memory_priority{ true },
thread_priority{ true },
allow_overlapped{ true },
allow_batch_race{ true },
batch_signatures{ 100'000 },
minimum_fee_rate{ 0.0 },
minimum_bump_rate{ 0.0 },
Expand Down
1 change: 1 addition & 0 deletions test/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ BOOST_AUTO_TEST_CASE(settings__node__default_context__expected)
BOOST_REQUIRE_EQUAL(node.memory_priority, true);
BOOST_REQUIRE_EQUAL(node.thread_priority, true);
BOOST_REQUIRE_EQUAL(node.allow_overlapped, true);
BOOST_REQUIRE_EQUAL(node.allow_batch_race, true);
BOOST_REQUIRE_EQUAL(node.minimum_fee_rate, 0.0);
BOOST_REQUIRE_EQUAL(node.minimum_bump_rate, 0.0);
BOOST_REQUIRE_EQUAL(node.allowed_deviation, 1.5);
Expand Down
Loading