Skip to content

Commit

Permalink
Fix inverted set_filter_body(...) error condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jan 12, 2025
1 parent b76dc3e commit 922dada
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chasers/chaser_validate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,9 @@ void chaser_validate::validate_block(const header_link& link) NOEXCEPT
{
ec = error::validate6;
}
else if (query.set_filter_body(link, *block))
else if (!query.set_filter_body(link, *block))
{
// TODO: this should not bypass checkpoint/milestone if enabled.
ec = error::validate7;
}
else
Expand Down

0 comments on commit 922dada

Please sign in to comment.