From e7587564a7eb3aa639ca1e81cfd6312d3d069c43 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Mon, 14 Sep 2015 17:29:43 -0400 Subject: [PATCH] Address History: Add getAddressHistoryCount to available API methods. --- lib/services/address/index.js | 3 ++- test/services/address/index.unit.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/services/address/index.js b/lib/services/address/index.js index af54d3dc..dbf944ce 100644 --- a/lib/services/address/index.js +++ b/lib/services/address/index.js @@ -48,7 +48,8 @@ AddressService.prototype.getAPIMethods = function() { ['getOutputs', this, this.getOutputs, 2], ['getUnspentOutputs', this, this.getUnspentOutputs, 2], ['isSpent', this, this.isSpent, 2], - ['getAddressHistory', this, this.getAddressHistory, 2] + ['getAddressHistory', this, this.getAddressHistory, 2], + ['getAddressHistoryCount', this, this.getAddressHistoryCount, 2] ]; }; diff --git a/test/services/address/index.unit.js b/test/services/address/index.unit.js index 6d611b60..f8f8a65c 100644 --- a/test/services/address/index.unit.js +++ b/test/services/address/index.unit.js @@ -29,7 +29,7 @@ describe('Address Service', function() { it('should return the correct methods', function() { var am = new AddressService({node: mocknode}); var methods = am.getAPIMethods(); - methods.length.should.equal(5); + methods.length.should.equal(6); }); });