mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Update fork choice find head fn
This commit is contained in:
@@ -18,5 +18,7 @@ pub trait LmdGhost<S: Store, E: EthSpec>: Send + Sync {
|
||||
block_slot: Slot,
|
||||
) -> Result<()>;
|
||||
|
||||
fn find_head(&self) -> Result<Hash256>;
|
||||
fn find_head<F>(&self, start_block_root: Hash256, weight: F) -> Result<Hash256>
|
||||
where
|
||||
F: Fn(usize) -> Option<u64>;
|
||||
}
|
||||
|
||||
@@ -86,7 +86,10 @@ where
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
fn find_head(&self) -> SuperResult<Hash256> {
|
||||
fn find_head<F>(&self, _start_block_root: Hash256, _weight: F) -> SuperResult<Hash256>
|
||||
where
|
||||
F: Fn(usize) -> Option<u64>,
|
||||
{
|
||||
unimplemented!();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user