Skip to content

Commit 2707f75

Browse files
committed
Add [node] fee settings.
1 parent c3bfe59 commit 2707f75

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

include/bitcoin/node/settings.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ class BCN_API settings
4141
bool defer_validation;
4242
bool defer_confirmation;
4343
float allowed_deviation;
44+
float minimum_free_rate;
45+
float minimum_bump_rate;
4446
uint16_t announcement_cache;
4547
uint16_t allocation_multiple;
4648
////uint64_t snapshot_bytes;

src/settings.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ settings::settings() NOEXCEPT
3535
thread_priority{ true },
3636
defer_validation{ false },
3737
defer_confirmation{ false },
38+
minimum_free_rate{ 0.0 },
39+
minimum_bump_rate{ 0.0 },
3840
allowed_deviation{ 1.5 },
3941
announcement_cache{ 42 },
4042
allocation_multiple{ 20 },

test/settings.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ BOOST_AUTO_TEST_CASE(settings__node__default_context__expected)
3535
BOOST_REQUIRE_EQUAL(node.headers_first, true);
3636
BOOST_REQUIRE_EQUAL(node.defer_validation, false);
3737
BOOST_REQUIRE_EQUAL(node.defer_confirmation, false);
38+
BOOST_REQUIRE_EQUAL(node.minimum_free_rate, 0.0);
39+
BOOST_REQUIRE_EQUAL(node.minimum_bump_rate, 0.0);
3840
BOOST_REQUIRE_EQUAL(node.allowed_deviation, 1.5);
3941
BOOST_REQUIRE_EQUAL(node.announcement_cache, 42_u16);
4042
BOOST_REQUIRE_EQUAL(node.allocation_multiple, 20_u16);

0 commit comments

Comments
 (0)