Skip to content

Commit

Permalink
add ed25519_program to built-in instruction cost list (#27199)
Browse files Browse the repository at this point in the history
* add ed25519_program to built-in instruction cost list

* Remove unnecessary and stale comment
  • Loading branch information
tao-stones authored Aug 19, 2022
1 parent b3c72bc commit 6f045d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runtime/src/block_cost_limits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 6f045d6

Please sign in to comment.