Remove feature switch for secp256k1 program (#18467)
* Remove feature switch for secp256k1 program * fix tests
This commit is contained in:
@ -1058,7 +1058,6 @@ impl BankingStage {
|
||||
fn transactions_from_packets(
|
||||
msgs: &Packets,
|
||||
transaction_indexes: &[usize],
|
||||
secp256k1_program_enabled: bool,
|
||||
cost_tracker: &Arc<RwLock<CostTracker>>,
|
||||
banking_stage_stats: &BankingStageStats,
|
||||
) -> (Vec<HashedTransaction<'static>>, Vec<usize>, Vec<usize>) {
|
||||
@ -1069,9 +1068,7 @@ impl BankingStage {
|
||||
.filter_map(|tx_index| {
|
||||
let p = &msgs.packets[*tx_index];
|
||||
let tx: Transaction = limited_deserialize(&p.data[0..p.meta.size]).ok()?;
|
||||
if secp256k1_program_enabled {
|
||||
tx.verify_precompiles().ok()?;
|
||||
}
|
||||
tx.verify_precompiles().ok()?;
|
||||
Some((tx, *tx_index))
|
||||
})
|
||||
.collect();
|
||||
@ -1179,7 +1176,6 @@ impl BankingStage {
|
||||
Self::transactions_from_packets(
|
||||
msgs,
|
||||
&packet_indexes,
|
||||
bank.secp256k1_program_enabled(),
|
||||
cost_tracker,
|
||||
banking_stage_stats,
|
||||
);
|
||||
@ -1284,7 +1280,6 @@ impl BankingStage {
|
||||
Self::transactions_from_packets(
|
||||
msgs,
|
||||
transaction_indexes,
|
||||
bank.secp256k1_program_enabled(),
|
||||
cost_tracker,
|
||||
banking_stage_stats,
|
||||
);
|
||||
|
Reference in New Issue
Block a user