Skip to content

Commit

Permalink
CRC: simplify do_consider logic in iterate_candidates
Browse files Browse the repository at this point in the history
Signed-off-by: Jacinta Ferrant <[email protected]>
  • Loading branch information
jferrant committed Jan 2, 2025
1 parent 4738c34 commit a7a95c4
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions stackslib/src/core/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1841,13 +1841,10 @@ impl MemPoolDB {
continue;
}

let do_consider = if settings.filter_origins.is_empty() {
true
} else {
settings
let do_consider = settings.filter_origins.is_empty()
|| settings
.filter_origins
.contains(&tx_info.metadata.origin_address)
};
.contains(&tx_info.metadata.origin_address);

if !do_consider {
debug!("Will skip mempool tx, since it does not have an allowed origin";
Expand Down

0 comments on commit a7a95c4

Please sign in to comment.