From a1c200356ef850a7d5fee5096669b41d30cb6c0e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 14 May 2016 14:57:32 -0700 Subject: [PATCH] mempool: minor. --- lib/bcoin/mempool.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bcoin/mempool.js b/lib/bcoin/mempool.js index 4f0da2ab..305186b5 100644 --- a/lib/bcoin/mempool.js +++ b/lib/bcoin/mempool.js @@ -1806,6 +1806,9 @@ Mempool.prototype.getSize = function getSize() { */ function MempoolEntry(options) { + if (!(this instanceof MempoolEntry)) + return new MempoolEntry(options); + this.tx = options.tx; this.height = options.height; this.priority = options.priority;