Fix ed25519 builtin program handling (#23182)

* Fix ed25519 builtin program handling

* Fix tests

* Add integration tests for processing transactions with ed25519 ixs

* Fix another test

* fix formatting
This commit is contained in:
Justin Starry
2022-02-17 02:48:55 +08:00
committed by GitHub
parent de30699fa5
commit 813725dfec
9 changed files with 177 additions and 13 deletions

View File

@ -5,9 +5,7 @@
use {
crate::{
decode_error::DecodeError,
feature_set::{
ed25519_program_enabled, prevent_calling_precompiles_as_programs, FeatureSet,
},
feature_set::{prevent_calling_precompiles_as_programs, FeatureSet},
instruction::CompiledInstruction,
pubkey::Pubkey,
},
@ -88,7 +86,7 @@ lazy_static! {
),
Precompile::new(
crate::ed25519_program::id(),
Some(ed25519_program_enabled::id()),
Some(prevent_calling_precompiles_as_programs::id()),
crate::ed25519_instruction::verify,
),
];