From 1c3034b17f5654437f6c50c8fc564c04833cb395 Mon Sep 17 00:00:00 2001 From: Quentin Le Sceller Date: Thu, 4 Jan 2018 10:39:30 -0500 Subject: [PATCH] Fix typo ''atheight'' instead of ''byheight'' in utxo handler (#577) * Fix typo atheight instead of byheight in utxo handler * Change atheight to byheight --- api/src/handlers.rs | 2 +- wallet/src/restore.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/handlers.rs b/api/src/handlers.rs index cd3fb8fd..442b4226 100644 --- a/api/src/handlers.rs +++ b/api/src/handlers.rs @@ -165,7 +165,7 @@ impl Handler for UtxoHandler { } match *path_elems.last().unwrap() { "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, ""))), } } diff --git a/wallet/src/restore.rs b/wallet/src/restore.rs index d750600a..ee4e9d87 100644 --- a/wallet/src/restore.rs +++ b/wallet/src/restore.rs @@ -97,7 +97,7 @@ pub fn utxos_batch_block( let url = format!( - "{}/v1/chain/utxos/atheight?{}", + "{}/v1/chain/utxos/byheight?{}", config.check_node_api_http_addr, query_param, );