Skip to content

Commit 5c40bbd

Browse files
committed
Add allow_overlapped node setting.
1 parent 8140aac commit 5c40bbd

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

include/bitcoin/node/settings.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class BCN_API settings
3838
bool headers_first;
3939
bool thread_priority;
4040
bool memory_priority;
41+
bool allow_overlapped;
4142
bool defer_validation;
4243
bool defer_confirmation;
4344
float allowed_deviation;

src/settings.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ settings::settings() NOEXCEPT
3333
headers_first{ true },
3434
memory_priority{ true },
3535
thread_priority{ true },
36+
allow_overlapped{ true },
3637
defer_validation{ false },
3738
defer_confirmation{ false },
3839
minimum_fee_rate{ 0.0 },

test/settings.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ BOOST_AUTO_TEST_CASE(settings__node__default_context__expected)
3030
using namespace network;
3131

3232
const node::settings node{};
33-
BOOST_REQUIRE_EQUAL(node.thread_priority, true);
3433
BOOST_REQUIRE_EQUAL(node.delay_inbound, true);
3534
BOOST_REQUIRE_EQUAL(node.headers_first, true);
35+
BOOST_REQUIRE_EQUAL(node.memory_priority, true);
36+
BOOST_REQUIRE_EQUAL(node.thread_priority, true);
37+
BOOST_REQUIRE_EQUAL(node.allow_overlapped, true);
3638
BOOST_REQUIRE_EQUAL(node.defer_validation, false);
3739
BOOST_REQUIRE_EQUAL(node.defer_confirmation, false);
3840
BOOST_REQUIRE_EQUAL(node.minimum_fee_rate, 0.0);

0 commit comments

Comments
 (0)