Build fix.

This commit is contained in:
Revertron
2021-04-18 18:46:21 +02:00
parent 41fcea1920
commit ad5247d4d8
+4 -5
View File
@@ -202,11 +202,10 @@ impl Chain {
return None;
}
let block = self.last_full_block.unwrap();
if block.transaction.is_none() {
trace!("No need to mine signing block");
return None;
}
let block = match self.last_full_block {
None => { return None; }
Some(ref block) => { block.clone() }
};
let keystore = keystore.clone().unwrap().clone();
let signers: HashSet<Bytes> = self.get_block_signers(&block).into_iter().collect();
if signers.contains(&keystore.get_public()) {