Skip to content

Commit

Permalink
tools: Add block_search method to RPC probe (#1002)
Browse files Browse the repository at this point in the history
* Add missing block_search endpoint
* Bump tendermint version to v0.34.13

Signed-off-by: Thane Thomson <[email protected]>
  • Loading branch information
thanethomson authored Oct 1, 2021
1 parent e1c158f commit 7239848
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/rpc-probe/Makefile.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[env]
CONTAINER_NAME = "kvstore-rpc-probe"
DOCKER_IMAGE = "informaldev/tendermint:0.34.9"
DOCKER_IMAGE = "informaldev/tendermint:0.34.13"
HOST_RPC_PORT = 26657
CARGO_MAKE_WAIT_MILLISECONDS = 3500

Expand Down
13 changes: 13 additions & 0 deletions tools/rpc-probe/src/kvstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ pub fn block(height: u64) -> PlannedInteraction {
.into()
}

pub fn block_search(query: &str, page: u32, per_page: u32, order_by: &str) -> PlannedInteraction {
Request::new(
"block_search",
json!({
"query": query,
"page": format!("{}", page),
"per_page": format!("{}", per_page),
"order_by": order_by,
}),
)
.into()
}

pub fn block_results(height: u64) -> PlannedInteraction {
Request::new(
"block_results",
Expand Down

0 comments on commit 7239848

Please sign in to comment.