Skip to content

Commit

Permalink
Scheduler: earlier fee check on receive (#4865)
Browse files Browse the repository at this point in the history
  • Loading branch information
apfitzge authored Feb 10, 2025
1 parent 6dc1654 commit 81d19c0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use {
},
},
crate::banking_stage::{
decision_maker::BufferedPacketsDecision,
consumer::Consumer, decision_maker::BufferedPacketsDecision,
immutable_deserialized_packet::ImmutableDeserializedPacket,
packet_deserializer::PacketDeserializer, packet_filter::MAX_ALLOWED_PRECOMPILE_SIGNATURES,
scheduler_messages::MaxAge,
Expand Down Expand Up @@ -244,6 +244,10 @@ impl SanitizedTransactionReceiveAndBuffer {
.zip(fee_budget_limits_vec.drain(..))
.zip(check_results)
.filter(|(_, check_result)| check_result.is_ok())
.filter(|((((_, tx), _), _), _)| {
Consumer::check_fee_payer_unlocked(&working_bank, tx, &mut error_counts)
.is_ok()
})
{
saturating_add_assign!(post_transaction_check_count, 1);

Expand Down

0 comments on commit 81d19c0

Please sign in to comment.