mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 20:57:10 +00:00
Update fork choice
This commit is contained in:
@@ -390,6 +390,7 @@ where
|
||||
*fc_store.finalized_checkpoint(),
|
||||
current_epoch_shuffling_id,
|
||||
next_epoch_shuffling_id,
|
||||
*fc_store.unsatisfied_inclusion_list_block(),
|
||||
execution_status,
|
||||
)?;
|
||||
|
||||
@@ -489,7 +490,6 @@ where
|
||||
store.justified_balances(),
|
||||
store.proposer_boost_root(),
|
||||
store.equivocating_indices(),
|
||||
store.unsatisfied_inclusion_list_block(),
|
||||
current_slot,
|
||||
spec,
|
||||
)?;
|
||||
@@ -628,11 +628,9 @@ where
|
||||
}
|
||||
|
||||
// TODO(focil) add documentation
|
||||
pub fn on_invalid_inclusion_list_payload(
|
||||
&mut self,
|
||||
block_root: Hash256,
|
||||
) {
|
||||
self.fc_store.set_unsatisfied_inclusion_list_block(block_root);
|
||||
pub fn on_invalid_inclusion_list_payload(&mut self, block_root: Hash256) {
|
||||
self.fc_store
|
||||
.set_unsatisfied_inclusion_list_block(block_root);
|
||||
}
|
||||
|
||||
/// Add `block` to the fork choice DAG.
|
||||
|
||||
@@ -81,7 +81,7 @@ pub trait ForkChoiceStore<E: EthSpec>: Sized {
|
||||
fn extend_equivocating_indices(&mut self, indices: impl IntoIterator<Item = u64>);
|
||||
|
||||
/// Returns the `unsatisfied_inclusion_list_block`.
|
||||
fn unsatisfied_inclusion_list_block(&self) -> Hash256;
|
||||
fn unsatisfied_inclusion_list_block(&self) -> &Hash256;
|
||||
|
||||
/// Sets the `unsatisfied_inclusion_list_block`.
|
||||
fn set_unsatisfied_inclusion_list_block(&mut self, block_root: Hash256);
|
||||
|
||||
Reference in New Issue
Block a user