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

Commit

Permalink
Remove useless sync
Browse files Browse the repository at this point in the history
  • Loading branch information
asonnino authored and huitseeker committed Aug 6, 2022
1 parent 9d66ac0 commit 52741d8
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 696 deletions.
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

0 comments on commit 52741d8

Please sign in to comment.