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 Sep 22, 2023
1 parent 9ccd81f commit 8928640
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ indicatif = "0.17.4"
Inflector = "0.11.4"
itertools = "0.10.5"
jemallocator = { package = "tikv-jemallocator", version = "0.4.1", features = ["unprefixed_malloc_on_supported_platforms"] }
jito-protos = { path = "jito-protos", version = "=1.16.13" }
jito-protos = { path = "jito-protos", version = "=1.16.15" }
tip-distribution = { path = "jito-programs/mev-programs/programs/tip-distribution", features = ["no-entrypoint"] }
tip-payment = { path = "jito-programs/mev-programs/programs/tip-payment", features = ["no-entrypoint"] }
js-sys = "0.3.63"
Expand Down
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
4 changes: 2 additions & 2 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8928640

Please sign in to comment.