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 Dec 12, 2018
1 parent 5fcba3c commit e5da1ae
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 e5da1ae

Please sign in to comment.