Skip to content

Commit

Permalink
add ed25519_program to built-in instruction cost list
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones committed Aug 17, 2022
1 parent 1eba91a commit 63d8ae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/src/block_cost_limits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
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 @@ -40,6 +40,7 @@ lazy_static! {
(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 63d8ae1

Please sign in to comment.