diff --git a/include/bitcoin/node/chasers/chaser_confirm.hpp b/include/bitcoin/node/chasers/chaser_confirm.hpp index 76684561..798c5607 100644 --- a/include/bitcoin/node/chasers/chaser_confirm.hpp +++ b/include/bitcoin/node/chasers/chaser_confirm.hpp @@ -69,7 +69,8 @@ class BCN_API chaser_confirm size_t top) NOEXCEPT; void announce(const header_link& link, height_t height) NOEXCEPT; - // This is thread safe. + // These are thread safe. + const bool filter_; const bool defer_; }; diff --git a/src/chasers/chaser_confirm.cpp b/src/chasers/chaser_confirm.cpp index 86df17a2..d1fb50b7 100644 --- a/src/chasers/chaser_confirm.cpp +++ b/src/chasers/chaser_confirm.cpp @@ -35,6 +35,7 @@ BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT) chaser_confirm::chaser_confirm(full_node& node) NOEXCEPT : chaser(node), + filter_(node.archive().filter_enabled()), defer_(node.node_settings().defer_confirmation) { } @@ -143,7 +144,7 @@ void chaser_confirm::do_bumped(height_t) NOEXCEPT // Guarded by candidate interlock. size_t fork_point{}; const auto& query = archive(); - auto fork = query.get_validated_fork(fork_point, checkpoint()); + auto fork = query.get_validated_fork(fork_point, checkpoint(), filter_); // Fork may be empty if candidates were reorganized. if (fork.empty())