Skip to content

Commit

Permalink
update doc comment and revert to making State public in tendermint-lite
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsi committed Jan 28, 2020
1 parent ed754a7 commit 585255c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tendermint-lite/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use tendermint::lite::{Error, Header, Height, Store, TrustedState};
use std::collections::HashMap;
use tendermint::block;

type State = TrustedState<block::signed_header::SignedHeader, block::header::Header>;
pub type State = TrustedState<block::signed_header::SignedHeader, block::header::Header>;

#[derive(Default)]
pub struct MemStore {
Expand Down
6 changes: 3 additions & 3 deletions tendermint/src/lite/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ pub trait Commit: Clone {
/// can be cross-referenced with the given `vals`.
fn voting_power_in(&self, vals: &Self::ValidatorSet) -> Result<u64, Error>;

/// Implementers should add addition validation related to the given validator set
/// Implementers should add addition validation against the given validator set
/// or other implementation specific validation here.
/// Examples might include that the length of the included signatures match with
/// the number of validators.
/// E.g. validate that the length of the included signatures in the commit match
/// with the number of validators.
fn validate(&self, vals: &Self::ValidatorSet) -> Result<(), Error>;
}

Expand Down

0 comments on commit 585255c

Please sign in to comment.