From b474a0a051188f5a4f340122457a761adb731bf2 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 2 Dec 2014 03:38:37 -0800 Subject: [PATCH] add chainHeight property. --- lib/bitcoind.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/bitcoind.js b/lib/bitcoind.js index 95d7dfc9..9f5131a7 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -481,6 +481,10 @@ Bitcoin.prototype.getChainHeight = function() { return bitcoindjs.getChainHeight(); }; +Bitcoin.prototype.__defineGetter__('chainHeight', function() { + return this.getChainHeight(); +}); + Bitcoin.prototype.log = Bitcoin.prototype.info = function() { if (this.options.silent) return;