From a7880de75259bba5ed3439871f3af85a5d2f2ca6 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Sat, 10 May 2014 23:18:16 +0400 Subject: [PATCH] tx-pool: fix `update` event --- lib/bcoin/tx-pool.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bcoin/tx-pool.js b/lib/bcoin/tx-pool.js index a4b11fa8..8f303063 100644 --- a/lib/bcoin/tx-pool.js +++ b/lib/bcoin/tx-pool.js @@ -135,8 +135,10 @@ TXPool.prototype.add = function add(tx, noWrite) { } delete this._orphans[key]; - if (!orphans) + if (!orphans) { this._unspent[key] = { tx: tx, index: i }; + updated = true; + } } this._lastTs = Math.max(tx.ts, this._lastTs);