Struct capacity_commitment_prover::prover::CCProver
source · pub struct CCProver { /* private fields */ }Implementations§
source§impl CCProver
impl CCProver
pub async fn new(config: CCPConfig) -> CCResult<Self>
pub async fn from_saved_state( config: CCPConfig, utility_core_ids_handle: CpuIdsHandle ) -> CCResult<Self>
pub async fn pause<'provers>(&'provers mut self) -> CCResult<()>
pub async fn stop(self) -> CCResult<()>
pub async fn shutdown(&mut self) -> CCResult<()>
pub async fn save_state( &self, epoch_state: EpochParameters, cu_allocation: CUAllocation ) -> Result<()>
pub async fn save_no_state(&self) -> Result<()>
Trait Implementations§
source§impl NoxCCPApi for CCProver
impl NoxCCPApi for CCProver
type Error = CCProverError
source§async fn on_active_commitment(
&mut self,
new_epoch: EpochParameters,
new_allocation: CUAllocation
) -> Result<(), Self::Error>
async fn on_active_commitment( &mut self, new_epoch: EpochParameters, new_allocation: CUAllocation ) -> Result<(), Self::Error>
Aims to apply a (new) allocation of CC compute jobs (which are threads with
particular global_nonce_cu + difficulty) per physical_core_id. Read more
source§async fn on_no_active_commitment<'threads>(
&'threads mut self
) -> Result<(), Self::Error>
async fn on_no_active_commitment<'threads>( &'threads mut self ) -> Result<(), Self::Error>
Stops all active jobs.
source§async fn get_proofs_after(
&self,
proof_idx: ProofIdx
) -> Result<Vec<CCProof>, Self::Error>
async fn get_proofs_after( &self, proof_idx: ProofIdx ) -> Result<Vec<CCProof>, Self::Error>
Returns proofs after the provided proof idx for current epoch.
source§async fn realloc_utility_cores(&self, utility_core_ids: Vec<LogicalCoreId>)
async fn realloc_utility_cores(&self, utility_core_ids: Vec<LogicalCoreId>)
Set utility
Auto Trait Implementations§
impl Freeze for CCProver
impl !RefUnwindSafe for CCProver
impl Send for CCProver
impl Sync for CCProver
impl Unpin for CCProver
impl !UnwindSafe for CCProver
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more