Skip to content

Commit 7759959

Browse files
authored
Fix get_block_records coinset (#285)
1 parent cf18400 commit 7759959

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

crates/chia-sdk-bindings/src/coinset.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,8 @@ impl CoinsetClient {
5454
Ok(self.0.get_block_record_by_height(height).await?)
5555
}
5656

57-
pub async fn get_block_records(
58-
&self,
59-
start_height: u32,
60-
end_height: u32,
61-
) -> Result<GetBlockRecordsResponse> {
62-
Ok(self.0.get_block_records(start_height, end_height).await?)
57+
pub async fn get_block_records(&self, start: u32, end: u32) -> Result<GetBlockRecordsResponse> {
58+
Ok(self.0.get_block_records(start, end).await?)
6359
}
6460

6561
pub async fn get_blocks(

crates/chia-sdk-coinset/src/chia_rpc_client.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ pub trait ChiaRpcClient {
7979

8080
fn get_block_records(
8181
&self,
82-
start_height: u32,
83-
end_height: u32,
82+
start: u32,
83+
end: u32,
8484
) -> impl Future<Output = Result<GetBlockRecordsResponse, Self::Error>> {
8585
self.make_post_request(
8686
"get_block_records",
8787
serde_json::json!({
88-
"start_height": start_height,
89-
"end_height": end_height,
88+
"start": start,
89+
"end": end,
9090
}),
9191
)
9292
}

0 commit comments

Comments
 (0)