Skip to content

Commit

Permalink
revert proof restart
Browse files Browse the repository at this point in the history
  • Loading branch information
miralandlabs committed Jul 30, 2024
1 parent e1aa3dd commit 1fa0830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/miner/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Miner {
&self,
messages: &Vec<WebWorkerResponse>,
toolbar_state: &mut Signal<MinerToolbarState>,
_proof: &mut Resource<GatewayResult<Proof>>,
proof: &mut Resource<GatewayResult<Proof>>,
gateway: Rc<Gateway>,
pubkey: Pubkey,
) {
Expand Down Expand Up @@ -135,7 +135,7 @@ impl Miner {
// Start mining again
Ok(_sig) => {
// log::info!("Success: {}", sig); // MI
// proof.restart();
proof.restart();
if let MinerStatus::Active = toolbar_state.status() {
if let Ok(proof) = gateway.get_proof(pubkey).await {
if let Ok(clock) = gateway.get_clock().await {
Expand Down

0 comments on commit 1fa0830

Please sign in to comment.