Skip to content

Commit

Permalink
remove associated type (Vote) from SignedHeader
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsi committed Dec 10, 2019
1 parent b6834fd commit a53098c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion tendermint/src/lite/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ where
H: Header,
C: Commit,
{
type Vote: Vote;
fn header(&self) -> H;
fn commit(&self) -> C;
}
Expand Down
2 changes: 0 additions & 2 deletions tendermint/src/rpc/endpoint/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ pub struct SignedHeader {
}

impl lite::SignedHeader<block::Header, SignedHeader> for SignedHeader {
type Vote = SignedVote;

fn header(&self) -> block::Header {
self.clone().header
}
Expand Down
2 changes: 1 addition & 1 deletion tendermint/src/vote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl Vote {
}
}

/// SignedVote is the union of a canoncialized vote, the signature on
/// SignedVote is the union of a canonicalized vote, the signature on
/// the sign bytes of that vote and the id of the validator who signed it.
pub struct SignedVote {
vote: amino_types::vote::CanonicalVote,
Expand Down

0 comments on commit a53098c

Please sign in to comment.