mirror of
https://github.com/sigp/lighthouse.git
synced 2026-07-01 11:54:40 +00:00
suppress error on duplicate blobs (#4995)
This commit is contained in:
@@ -16,9 +16,15 @@ pub enum Error {
|
||||
}
|
||||
|
||||
#[derive(Eq, Hash, PartialEq, Debug, Default)]
|
||||
struct ProposalKey {
|
||||
slot: Slot,
|
||||
proposer: u64,
|
||||
pub struct ProposalKey {
|
||||
pub slot: Slot,
|
||||
pub proposer: u64,
|
||||
}
|
||||
|
||||
impl ProposalKey {
|
||||
pub fn new(proposer: u64, slot: Slot) -> Self {
|
||||
Self { slot, proposer }
|
||||
}
|
||||
}
|
||||
|
||||
/// Maintains a cache of observed `(block.slot, block.proposer)`.
|
||||
|
||||
Reference in New Issue
Block a user