Skip to content

Commit

Permalink
Loosen requirements on tip accounts touchable in BankingStage (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu authored Oct 6, 2024
1 parent b0d118e commit b3ca5ec
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/tpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,9 @@ impl Tpu {

let bundle_account_locker = BundleAccountLocker::default();

// tip accounts can't be used in BankingStage to avoid someone from stealing tips mid-slot.
// it also helps reduce surface area for potential account contention
// The tip program can't be used in BankingStage to avoid someone from stealing tips mid-slot.
let mut blacklisted_accounts = HashSet::new();
blacklisted_accounts.insert(tip_manager.tip_payment_config_pubkey());
blacklisted_accounts.extend(tip_manager.get_tip_accounts());
blacklisted_accounts.insert(tip_manager.tip_payment_program_id());
let banking_stage = BankingStage::new(
block_production_method,
cluster_info,
Expand Down

0 comments on commit b3ca5ec

Please sign in to comment.