From 5bde338a53117b1bd0fd92df0abc23d95180ab32 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 16 Jun 2017 10:27:17 -0700 Subject: [PATCH] rpc: fix verifytxoutproof. --- lib/http/rpc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http/rpc.js b/lib/http/rpc.js index cc0f4400..3ae80147 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -971,8 +971,8 @@ RPC.prototype.verifyTXOutProof = co(function* verifyTXOutProof(args, help) { if (!entry) throw new RPCError(errs.MISC_ERROR, 'Block not found in chain.'); - for (i = 0; i < block.matches.length; i++) { - hash = block.matches[i]; + for (i = 0; i < block.tree.matches.length; i++) { + hash = block.tree.matches[i]; out.push(util.revHex(hash)); }