From 46c862297d59c7698ae78105f82e066a1b3e659f Mon Sep 17 00:00:00 2001
From: Harm Aarts <harmaarts@gmail.com>
Date: Fri, 26 Oct 2018 17:09:07 +0200
Subject: [PATCH] fix: replace wrong query parameter

---
 api/src/handlers.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/src/handlers.rs b/api/src/handlers.rs
index 47eb6e22b..37eaf3265 100644
--- a/api/src/handlers.rs
+++ b/api/src/handlers.rs
@@ -249,7 +249,7 @@ impl Handler for OutputHandler {
 // GET /v1/txhashset/outputs?start_index=1&max=100
 //
 // Build a merkle proof for a given pos
-// GET /v1/txhashset/merkleproof?n=1
+// GET /v1/txhashset/merkleproof?id=1
 
 struct TxHashSetHandler {
 	chain: Weak<chain::Chain>,
@@ -820,11 +820,11 @@ pub fn build_router(
 		"get chain/outputs".to_string(),
 		"get status".to_string(),
 		"get txhashset/roots".to_string(),
-		"get txhashset/merkleproof?n=output_id".to_string(),
 		"get txhashset/lastoutputs?n=<count>".to_string(),
 		"get txhashset/lastrangeproofs?n=<count>".to_string(),
 		"get txhashset/lastkernels?n=<count>".to_string(),
 		"get txhashset/outputs?start_index=<index>&max=<count>".to_string(),
+		"get txhashset/merkleproof?id=<output_commitment>".to_string(),
 		"get pool".to_string(),
 		"post pool/push".to_string(),
 		"post peers/<ip>:<port>/ban".to_string(),