mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
parent
04438347ad
commit
f276de1719
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ impl StratumServer {
|
||||||
return Err(serde_json::to_value(e).unwrap());
|
return Err(serde_json::to_value(e).unwrap());
|
||||||
}
|
}
|
||||||
// If the difficulty is high enough, submit it (which also validates it)
|
// 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
|
// This is a full solution, submit it to the network
|
||||||
let res = self.chain.process_block(b.clone(), chain::Options::MINE);
|
let res = self.chain.process_block(b.clone(), chain::Options::MINE);
|
||||||
if let Err(e) = res {
|
if let Err(e) = res {
|
||||||
|
|
Loading…
Reference in a new issue