Make Proposer consume its reference on propose (#6190)

* Make `Proposer` consume its reference on `propose`

A proposer must be created per new round, so it makes sense to have the
proposer consume its own reference.

* Remove `ProposerInner`
This commit is contained in:
Bastian Köcher authored and GitHub committed 2020-05-29 18:50:56 +02:00
1 parent 78a72c12d7
commit 841aab512f
8 files changed
+24 -32

No files matched your search

+1 -1
View File
@@ -159,7 +159,7 @@ impl Proposer<TestBlock> for DummyProposer {
type Proposal = future::Ready<Result<Proposal<TestBlock, Self::Transaction>, Error>>;
fn propose(
&mut self,
mut self,
_: InherentData,
pre_digests: DigestFor<TestBlock>,
_: Duration,