Skip to content

Commit

Permalink
PARTIAL: cargo lint on benchmarks
Browse files Browse the repository at this point in the history
Refs #3556
  • Loading branch information
conorsch committed Jan 4, 2024
1 parent 0d8f80d commit e260f6e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions crates/bench/benches/undelegate_claim.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
use ark_ff::UniformRand;
use ark_relations::r1cs::{
ConstraintSynthesizer, ConstraintSystem, OptimizationGoal, SynthesisMode,
};
use ark_relations::r1cs::{ConstraintSystem, OptimizationGoal, SynthesisMode};
use decaf377::{Fq, Fr};
use decaf377_rdsa as rdsa;
use penumbra_asset::{asset, balance};
use penumbra_num::Amount;
use penumbra_proof_params::UNDELEGATECLAIM_PROOF_PROVING_KEY;
use penumbra_stake::{
IdentityKey, Penalty, UnbondingToken, UndelegateClaimCircuit, UndelegateClaimProof,
};
use penumbra_shielded_pool::ConvertCircuit;
use penumbra_stake::{IdentityKey, Penalty, UnbondingToken, UndelegateClaimProof};

use criterion::{criterion_group, criterion_main, Criterion};
use rand_core::OsRng;
Expand Down Expand Up @@ -67,7 +64,7 @@ fn undelegate_claim_proving_time(c: &mut Criterion) {
});

// Also print out the number of constraints.
let circuit = UndelegateClaimCircuit::new(
let circuit = ConvertCircuit::new(
unbonding_amount,
balance_blinding,
balance_commitment,
Expand Down

0 comments on commit e260f6e

Please sign in to comment.