rpc: fix verifytxoutproof.

This commit is contained in:
Christopher Jeffrey 2017-06-16 10:27:17 -07:00
parent 6ca3a3fda6
commit 5bde338a53
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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