diff --git a/include/bitcoin/database/impl/query/optional.ipp b/include/bitcoin/database/impl/query/optional.ipp index e504302e..79a66286 100644 --- a/include/bitcoin/database/impl/query/optional.ipp +++ b/include/bitcoin/database/impl/query/optional.ipp @@ -213,6 +213,9 @@ TEMPLATE bool CLASS::set_filter_body(const header_link&, const filter&) NOEXCEPT { + if (!neutrino_enabled()) + return true; + // ======================================================================== const auto scope = store_.get_transactor(); @@ -232,6 +235,9 @@ TEMPLATE bool CLASS::set_filter_head(const header_link&, const hash_digest&) NOEXCEPT { + if (!neutrino_enabled()) + return true; + // ======================================================================== const auto scope = store_.get_transactor();