mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-03 21:04:28 +00:00
should_extend_payload and gossip bid verification changes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::PayloadStatus;
|
||||
use safe_arith::ArithError;
|
||||
use types::{Epoch, ExecutionBlockHash, Hash256};
|
||||
use types::{Epoch, ExecutionBlockHash, Hash256, Slot};
|
||||
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
pub enum Error {
|
||||
@@ -63,6 +63,14 @@ pub enum Error {
|
||||
block_root: Hash256,
|
||||
payload_status: PayloadStatus,
|
||||
},
|
||||
/// `should_extend_payload` was called for a block whose slot is not the previous slot.
|
||||
///
|
||||
/// Spec equivalent: `assert store.blocks[root].slot + 1 == get_current_slot(store)`.
|
||||
ShouldExtendPayloadInvalidSlot {
|
||||
block_root: Hash256,
|
||||
block_slot: Slot,
|
||||
current_slot: Slot,
|
||||
},
|
||||
}
|
||||
|
||||
impl From<ArithError> for Error {
|
||||
|
||||
Reference in New Issue
Block a user