mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-15 09:48:20 +00:00
Fix clippy errors from new code (unused method, unnecessary cast)
This commit is contained in:
@@ -41,7 +41,7 @@ pub struct AwaitingParent {
|
||||
|
||||
impl AwaitingParent {
|
||||
pub fn is_parent_imported<T: BeaconChainTypes>(&self, cx: &mut SyncNetworkContext<T>) -> bool {
|
||||
if self.parent_root == Hash256::ZERO {
|
||||
if self.parent_is_genesis() {
|
||||
// Zero hash is the parent of the genesis block — not a real block, so no
|
||||
// parent-known check is needed. Fall through to send the block for processing.
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user