Merge branch 'work-notify' into beta
This commit is contained in:
commit
0de297adf7
@ -263,6 +263,7 @@ impl Miner {
|
|||||||
let number = block.block().fields().header.number();
|
let number = block.block().fields().header.number();
|
||||||
let difficulty = *block.block().fields().header.difficulty();
|
let difficulty = *block.block().fields().header.difficulty();
|
||||||
sealing_work.push(block);
|
sealing_work.push(block);
|
||||||
|
// If push notifications are enabled we assume all work items are used.
|
||||||
if self.work_poster.is_some() {
|
if self.work_poster.is_some() {
|
||||||
sealing_work.use_last_ref();
|
sealing_work.use_last_ref();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user