fix addTX.
This commit is contained in:
parent
a99725f8ff
commit
5ab48378cc
@ -878,13 +878,16 @@ Pool.prototype._addTX = function(hash, state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.tx.state[hash] == null) {
|
if (this.tx.state[hash] == null) {
|
||||||
if (state == null)
|
|
||||||
state = 1;
|
|
||||||
this.tx.state[hash] = state;
|
this.tx.state[hash] = state;
|
||||||
this.tx.count++;
|
this.tx.count++;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.tx.state[hash] < state) {
|
||||||
|
this.tx.state[hash] = state;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user