Fail secp256k1 if the instruction data looks incorrect (#19300)
This commit is contained in:
@ -5011,7 +5011,7 @@ impl Bank {
|
||||
}
|
||||
|
||||
if !skip_verification {
|
||||
sanitized_tx.verify_precompiles(self.libsecp256k1_0_5_upgrade_enabled())?;
|
||||
sanitized_tx.verify_precompiles(self.libsecp256k1_0_5_upgrade_enabled(), true)?;
|
||||
}
|
||||
|
||||
Ok(sanitized_tx)
|
||||
@ -5467,6 +5467,11 @@ impl Bank {
|
||||
.is_active(&feature_set::libsecp256k1_0_5_upgrade_enabled::id())
|
||||
}
|
||||
|
||||
pub fn libsecp256k1_fail_on_bad_count(&self) -> bool {
|
||||
self.feature_set
|
||||
.is_active(&feature_set::libsecp256k1_fail_on_bad_count::id())
|
||||
}
|
||||
|
||||
pub fn merge_nonce_error_into_system_error(&self) -> bool {
|
||||
self.feature_set
|
||||
.is_active(&feature_set::merge_nonce_error_into_system_error::id())
|
||||
|
Reference in New Issue
Block a user