Skip to content

Commit

Permalink
Remove blacklisted tx from message_hash_to_transaction (Backport #374) (
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu committed Oct 15, 2023
1 parent b81c82a commit a15347e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions core/src/unprocessed_transaction_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,15 @@ fn consume_scan_should_process_packet(
bank.get_transaction_account_lock_limit(),
)
.is_err()
|| message
.account_keys()
.iter()
.any(|key| blacklisted_accounts.contains(key))
{
payload
.message_hash_to_transaction
.remove(packet.message_hash());
ProcessingDecision::Never
} else if message
.account_keys()
.iter()
.any(|key| blacklisted_accounts.contains(key))
{
ProcessingDecision::Never
} else if payload.account_locks.try_locking(message) {
payload.sanitized_transactions.push(sanitized_transaction);
ProcessingDecision::Now
Expand Down

0 comments on commit a15347e

Please sign in to comment.