From 516b64f0cb6f75fa870a40e75041ac7bbaeb14fa Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Mon, 12 May 2014 16:32:57 +0400 Subject: [PATCH] pool: add .isFull() --- lib/bcoin/pool.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index 4a7e8a48..d22d2dc8 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -177,6 +177,10 @@ Pool.prototype._addLoader = function _addLoader() { }); }; +Pool.prototype.isFull = function isFull() { + return this.chain.isFull(); +}; + Pool.prototype._loadRange = function _loadRange(hashes, force) { if (!hashes) return;