mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
Don't push mined blocks to the chain during sync (#1643)
Related to #1632
This commit is contained in:
parent
2919a78b0f
commit
8e66aae592
1 changed files with 1 additions and 1 deletions
|
@ -502,7 +502,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 {
|
||||
if share_difficulty >= self.current_difficulty && !self.sync_state.is_syncing() {
|
||||
// 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 {
|
||||
|
|
Loading…
Reference in a new issue