File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -54,12 +54,8 @@ impl CoinsetClient {
54
54
Ok ( self . 0 . get_block_record_by_height ( height) . await ?)
55
55
}
56
56
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 ?)
63
59
}
64
60
65
61
pub async fn get_blocks (
Original file line number Diff line number Diff line change @@ -79,14 +79,14 @@ pub trait ChiaRpcClient {
79
79
80
80
fn get_block_records (
81
81
& self ,
82
- start_height : u32 ,
83
- end_height : u32 ,
82
+ start : u32 ,
83
+ end : u32 ,
84
84
) -> impl Future < Output = Result < GetBlockRecordsResponse , Self :: Error > > {
85
85
self . make_post_request (
86
86
"get_block_records" ,
87
87
serde_json:: json!( {
88
- "start_height " : start_height ,
89
- "end_height " : end_height ,
88
+ "start " : start ,
89
+ "end " : end ,
90
90
} ) ,
91
91
)
92
92
}
You can’t perform that action at this time.
0 commit comments