fix addTX.

This commit is contained in:
Christopher Jeffrey 2016-01-30 02:34:35 -08:00
parent a99725f8ff
commit 5ab48378cc

View File

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