mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Fix typo ''atheight'' instead of ''byheight'' in utxo handler (#577)
* Fix typo atheight instead of byheight in utxo handler * Change atheight to byheight
This commit is contained in:
parent
c8383dac93
commit
1c3034b17f
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ impl Handler for UtxoHandler {
|
||||||
}
|
}
|
||||||
match *path_elems.last().unwrap() {
|
match *path_elems.last().unwrap() {
|
||||||
"byids" => json_response(&self.utxos_by_ids(req)),
|
"byids" => json_response(&self.utxos_by_ids(req)),
|
||||||
"atheight" => json_response(&self.utxo_block_batch(req)),
|
"byheight" => json_response(&self.utxo_block_batch(req)),
|
||||||
_ => Ok(Response::with((status::BadRequest, ""))),
|
_ => Ok(Response::with((status::BadRequest, ""))),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ pub fn utxos_batch_block(
|
||||||
|
|
||||||
let url =
|
let url =
|
||||||
format!(
|
format!(
|
||||||
"{}/v1/chain/utxos/atheight?{}",
|
"{}/v1/chain/utxos/byheight?{}",
|
||||||
config.check_node_api_http_addr,
|
config.check_node_api_http_addr,
|
||||||
query_param,
|
query_param,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue