Skip to content

Commit

Permalink
fix: resolve mining old block issue (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
quake authored and doitian committed Dec 13, 2018
1 parent edb2658 commit 01e02e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions miner/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,9 @@ impl Client {
error!(target: "miner", "rpc call submit_block error: {:?}", e);
}
}

info!(target: "miner", "clear shared data and waiting for the next poll");
let mut inner = self.shared.inner.write();
*inner = None;
}
}

0 comments on commit 01e02e2

Please sign in to comment.