Skip to content

Commit

Permalink
added deletion provers when returning batch sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKitsune committed Sep 25, 2023
1 parent d578921 commit d38a550
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/contracts/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -485,11 +485,15 @@ impl IdentityManager {
}

pub async fn list_batch_sizes(&self) -> Result<Vec<ProverConfiguration>, ServerError> {
Ok(self
let mut provers = self
.insertion_prover_map
.read()
.await
.as_configuration_vec())
.as_configuration_vec();

provers.extend(self.deletion_prover_map.read().await.as_configuration_vec());

Ok(provers)
}

pub async fn has_insertion_provers(&self) -> bool {
Expand Down

0 comments on commit d38a550

Please sign in to comment.