Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
set secp256k1 cost similar to sigverify
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-stones committed Dec 31, 2021
1 parent d743c29 commit a2a7e91
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 @@ -38,7 +38,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_program::id(), COMPUTE_UNIT_TO_US_RATIO * 2),
// secp256k1 is executed in banking stage, it should cost similar to sigverify
(secp256k1_program::id(), COMPUTE_UNIT_TO_US_RATIO * 24),
(system_program::id(), COMPUTE_UNIT_TO_US_RATIO * 5),
]
.iter()
Expand Down

0 comments on commit a2a7e91

Please sign in to comment.