Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Simplify executor-consensus interface #691

Merged
merged 2 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ pub mod bullshark;
pub mod consensus;
pub mod dag;
pub mod metrics;
pub mod subscriber;
pub mod tusk;
mod utils;

pub use crate::{consensus::Consensus, subscriber::SubscriberHandler};
pub use crate::consensus::Consensus;

use serde::{Deserialize, Serialize};
use std::ops::RangeInclusive;
use types::{Certificate, SequenceNumber};

/// The default channel size used in the consensus and subscriber logic.
Expand All @@ -32,10 +30,3 @@ pub struct ConsensusOutput {
/// The (global) index associated with this certificate.
pub consensus_index: SequenceNumber,
}

/// The message sent by the client to sync missing chunks of the output sequence.
#[derive(Serialize, Deserialize, Debug)]
pub struct ConsensusSyncRequest {
/// The sequence numbers of the missing consensus outputs.
pub missing: RangeInclusive<SequenceNumber>,
}
128 changes: 0 additions & 128 deletions consensus/src/subscriber.rs

This file was deleted.

Loading