add ed25519_program to built-in instruction cost list (#27199)
* add ed25519_program to built-in instruction cost list * Remove unnecessary and stale comment
This commit is contained in:
parent
b3c72bc8a2
commit
6f045d6080
|
@ -3,7 +3,8 @@
|
|||
use {
|
||||
lazy_static::lazy_static,
|
||||
solana_sdk::{
|
||||
feature, incinerator, native_loader, pubkey::Pubkey, secp256k1_program, system_program,
|
||||
ed25519_program, feature, incinerator, native_loader, pubkey::Pubkey, secp256k1_program,
|
||||
system_program,
|
||||
},
|
||||
std::collections::HashMap,
|
||||
};
|
||||
|
@ -38,8 +39,8 @@ lazy_static! {
|
|||
(solana_sdk::stake::program::id(), COMPUTE_UNIT_TO_US_RATIO * 25),
|
||||
(solana_config_program::id(), COMPUTE_UNIT_TO_US_RATIO * 15),
|
||||
(solana_vote_program::id(), COMPUTE_UNIT_TO_US_RATIO * 70),
|
||||
// secp256k1 is executed in banking stage, it should cost similar to sigverify
|
||||
(secp256k1_program::id(), COMPUTE_UNIT_TO_US_RATIO * 24),
|
||||
(ed25519_program::id(), COMPUTE_UNIT_TO_US_RATIO * 24),
|
||||
(system_program::id(), COMPUTE_UNIT_TO_US_RATIO * 5),
|
||||
]
|
||||
.iter()
|
||||
|
|
Loading…
Reference in New Issue