Skip to content

Commit

Permalink
Add BLS branch to benchmarking filter
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Apr 22, 2024
1 parent 28e944b commit b77e03c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ workflows:
- main
- /^[0-9]+\.[0-9]+$/
# Add your branch here if benchmarking matters to your work
- bls12_381
- secp256r1-support
- coverage
deploy:
Expand Down
6 changes: 4 additions & 2 deletions packages/vm/src/imports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,10 @@ pub fn do_bls12_381_aggregate_pairing_equality<

let gas_info = GasInfo::with_cost(
data.gas_config.bls12_381_pairing_equality_cost
+ (data.gas_config.bls12_381_aggregated_pairing_equality_cost_per_point
* (ps.len() / BLS12_381_G1_POINT_LEN) as u64)
+ (data
.gas_config
.bls12_381_aggregated_pairing_equality_cost_per_point
* (ps.len() / BLS12_381_G1_POINT_LEN) as u64),
);
process_gas_info(data, &mut store, gas_info)?;

Expand Down

0 comments on commit b77e03c

Please sign in to comment.