Skip to content

Commit

Permalink
Add test for lite::Header.hash() in rpc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsi committed Nov 6, 2019
1 parent 15f8b02 commit e686c45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tendermint/tests/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
mod endpoints {
use std::{fs, path::PathBuf};
use tendermint::abci::Code;
use tendermint::lite::Header;
use tendermint::rpc::{self, endpoint, Response};

const EXAMPLE_APP: &str = "GaiaApp";
Expand Down Expand Up @@ -167,8 +168,9 @@ mod endpoints {
// in SignedHeader; later we should verify some properties: e.g. block_id.hash matches the
// header etc:
let commit = response.signed_header.commit;
let _block_id = commit.block_id;
let block_id = commit.block_id;
let _precommits = commit.precommits;
assert_eq!(header.hash(), block_id.hash);
}

#[test]
Expand Down

0 comments on commit e686c45

Please sign in to comment.