Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc: Add probe to capture responses from Tendermint RPC for use in testing #653

Merged
merged 19 commits into from
Nov 18, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge latest changes from master
Signed-off-by: Thane Thomson <[email protected]>
  • Loading branch information
thanethomson committed Oct 23, 2020
commit 335e7e9b7f5d8fc4066ca42b964a89a50f6df5ed
2 changes: 1 addition & 1 deletion testgen/src/commit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ impl Generator<block::Commit> for Commit {
let block_header = header.generate()?;
let block_id = block::Id {
hash: block_header.hash(),
part_set_header: PartSetHeader::default(),
part_set_header: PartSetHeader::new(1, block_header.hash()),
};
let votes = match &self.votes {
None => self.clone().generate_default_votes().votes.unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion testgen/src/vote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl Generator<vote::Vote> for Vote {
let block_header = header.generate()?;
let block_id = block::Id {
hash: block_header.hash(),
part_set_header: PartSetHeader::default(),
part_set_header: PartSetHeader::new(1, block_header.hash()),
};
let validator_index = match self.index {
Some(i) => i,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.