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 <tkporter4@gmail.com>
pull/4421/merge
L.Y 2 months ago committed by GitHub
parent 95f6421cd9
commit b326d4bfce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      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(());
}

Loading…
Cancel
Save