add chainHeight property.

This commit is contained in:
Christopher Jeffrey 2014-12-02 03:38:37 -08:00
parent d2fd57faef
commit b474a0a051
1 changed files with 4 additions and 0 deletions

View File

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