From b326d4bfce7e7412e23983bd2bf2e948e4a63cc3 Mon Sep 17 00:00:00 2001 From: "L.Y" <141099829+lyfsn@users.noreply.github.com> Date: Thu, 12 Sep 2024 20:24:14 +0800 Subject: [PATCH] fix: incorrect use of blacklist variable (#4099) ### Description Otherwise, the whitelist will not work; any whitelist parameter will function as a blocklist. Co-authored-by: Trevor Porter --- rust/agents/relayer/src/msg/processor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/agents/relayer/src/msg/processor.rs b/rust/agents/relayer/src/msg/processor.rs index 40808ad3d5..8d0422879a 100644 --- a/rust/agents/relayer/src/msg/processor.rs +++ b/rust/agents/relayer/src/msg/processor.rs @@ -258,8 +258,8 @@ impl ProcessorExt for MessageProcessor { } // Skip if the message is blacklisted - if self.message_whitelist.msg_matches(&msg, false) { - debug!(?msg, blacklist=?self.message_whitelist, "Message blacklisted, skipping"); + if self.message_blacklist.msg_matches(&msg, false) { + debug!(?msg, blacklist=?self.message_blacklist, "Message blacklisted, skipping"); return Ok(()); }