From 922dadacb3173269ccec5de1978f3e48b328b06e Mon Sep 17 00:00:00 2001 From: evoskuil Date: Sun, 12 Jan 2025 13:08:31 -0500 Subject: [PATCH] Fix inverted set_filter_body(...) error condition. --- src/chasers/chaser_validate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chasers/chaser_validate.cpp b/src/chasers/chaser_validate.cpp index e8b51e3e..4d65b231 100644 --- a/src/chasers/chaser_validate.cpp +++ b/src/chasers/chaser_validate.cpp @@ -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