Skip to content

Commit

Permalink
Disable neutrino setters when the table is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jan 5, 2025
1 parent b1a1a58 commit 3a3ee75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/bitcoin/database/impl/query/optional.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand Down

0 comments on commit 3a3ee75

Please sign in to comment.