diff --git a/substrate/candidate-agreement/src/bft/accumulator.rs b/substrate/candidate-agreement/src/bft/accumulator.rs index 69d6329f9b..a0c99698df 100644 --- a/substrate/candidate-agreement/src/bft/accumulator.rs +++ b/substrate/candidate-agreement/src/bft/accumulator.rs @@ -158,7 +158,7 @@ impl Accumulator let (sender, signature) = (message.sender, message.signature); match message.message { - Message::Propose(_, p) => self.import_proposal(p, sender, signature), + Message::Propose(_, p) => self.import_proposal(p, sender), Message::Prepare(_, d) => self.import_prepare(d, sender, signature), Message::Commit(_, d) => self.import_commit(d, sender, signature), Message::AdvanceRound(_) => self.import_advance_round(sender), @@ -169,7 +169,6 @@ impl Accumulator &mut self, proposal: C, sender: V, - signature: S, ) { if sender != self.round_proposer || self.proposal.is_some() { return } diff --git a/substrate/candidate-agreement/src/bft/mod.rs b/substrate/candidate-agreement/src/bft/mod.rs index da4b6fe91d..74476b98b0 100644 --- a/substrate/candidate-agreement/src/bft/mod.rs +++ b/substrate/candidate-agreement/src/bft/mod.rs @@ -16,12 +16,6 @@ //! BFT Agreement based on a rotating proposer in different rounds. -use std::collections::{HashMap, HashSet}; -use std::hash::Hash; - -use futures::{IntoFuture, Future, Stream, Sink}; -use futures::future::{ok, loop_fn, Loop}; - mod accumulator; /// Messages over the proposal.