mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +00:00
vote sanity and genesis epoch fix
This commit is contained in:
@@ -85,7 +85,7 @@ use execution_layer::{
|
||||
};
|
||||
use fixed_bytes::FixedBytesExtended;
|
||||
use fork_choice::{
|
||||
AttestationFromBlock, ExecutionStatus, ForkChoice, ForkchoiceUpdateParameters,
|
||||
ExecutionStatus, ForkChoice, ForkchoiceUpdateParameters,
|
||||
InvalidationOperation, PayloadVerificationStatus, ResetPayloadStatuses,
|
||||
};
|
||||
use futures::channel::mpsc::Sender;
|
||||
@@ -2262,7 +2262,7 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
.on_attestation(
|
||||
self.slot()?,
|
||||
verified.indexed_attestation().to_ref(),
|
||||
AttestationFromBlock::False,
|
||||
false,
|
||||
&self.spec,
|
||||
)
|
||||
.map_err(Into::into)
|
||||
|
||||
@@ -71,7 +71,7 @@ use bls::{PublicKey, PublicKeyBytes};
|
||||
use educe::Educe;
|
||||
use eth2::types::{BlockGossip, EventKind};
|
||||
use execution_layer::PayloadStatus;
|
||||
pub use fork_choice::{AttestationFromBlock, PayloadVerificationStatus};
|
||||
pub use fork_choice::PayloadVerificationStatus;
|
||||
use metrics::TryExt;
|
||||
use parking_lot::RwLockReadGuard;
|
||||
use proto_array::Block as ProtoBlock;
|
||||
@@ -1664,7 +1664,7 @@ impl<T: BeaconChainTypes> ExecutionPendingBlock<T> {
|
||||
match fork_choice.on_attestation(
|
||||
current_slot,
|
||||
indexed_attestation,
|
||||
AttestationFromBlock::True,
|
||||
true,
|
||||
&chain.spec,
|
||||
) {
|
||||
Ok(()) => Ok(()),
|
||||
@@ -1685,7 +1685,7 @@ impl<T: BeaconChainTypes> ExecutionPendingBlock<T> {
|
||||
match fork_choice.on_payload_attestation(
|
||||
current_slot,
|
||||
indexed_payload_attestation,
|
||||
AttestationFromBlock::True,
|
||||
true,
|
||||
) {
|
||||
Ok(()) => Ok(()),
|
||||
// Ignore invalid payload attestations whilst importing from a block.
|
||||
|
||||
Reference in New Issue
Block a user