suppress error on duplicate blobs (#4995)

This commit is contained in:
realbigsean
2023-12-18 12:15:12 -05:00
committed by GitHub
parent dfc3b3714a
commit c55608be10
5 changed files with 216 additions and 64 deletions

View File

@@ -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)`.