Save the block reference in the queue on notification
This commit is contained in:
parent
24e73f3aec
commit
070c1b170f
@ -263,6 +263,9 @@ 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 self.work_poster.is_some() {
|
||||||
|
sealing_work.use_last_ref();
|
||||||
|
}
|
||||||
Some((pow_hash, difficulty, number))
|
Some((pow_hash, difficulty, number))
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
Loading…
Reference in New Issue
Block a user