diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index 138ff6de..b178e108 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -878,13 +878,16 @@ Pool.prototype._addTX = function(hash, state) { } if (this.tx.state[hash] == null) { - if (state == null) - state = 1; this.tx.state[hash] = state; this.tx.count++; return true; } + if (this.tx.state[hash] < state) { + this.tx.state[hash] = state; + return true; + } + return false; };