Revert #1643, fixes #1654, header head not updating on low diff

This commit is contained in:
Ignotus Peverell 2018-11-05 01:50:33 +00:00
parent 04438347ad
commit f276de1719
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211

View file

@ -491,7 +491,7 @@ impl StratumServer {
return Err(serde_json::to_value(e).unwrap());
}
// If the difficulty is high enough, submit it (which also validates it)
if share_difficulty >= self.current_difficulty && !self.sync_state.is_syncing() {
if share_difficulty >= self.current_difficulty {
// This is a full solution, submit it to the network
let res = self.chain.process_block(b.clone(), chain::Options::MINE);
if let Err(e) = res {