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:
Quentin Le Sceller 2018-01-04 10:39:30 -05:00 committed by AntiochP
parent c8383dac93
commit 1c3034b17f
2 changed files with 2 additions and 2 deletions

View file

@ -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, ""))),
} }
} }

View file

@ -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,
); );