mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-01 01:25:48 +00:00
Use lru-cache API
This commit is contained in:
@@ -488,8 +488,10 @@ Remote.prototype._handleMessage = function(message, server) {
|
|||||||
|
|
||||||
if (this._received_tx.hasOwnProperty(hash)) {
|
if (this._received_tx.hasOwnProperty(hash)) {
|
||||||
break;
|
break;
|
||||||
} else if (message.validated) {
|
}
|
||||||
this._received_tx[hash] = true;
|
|
||||||
|
if (message.validated) {
|
||||||
|
this._received_tx.set(hash, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._trace('remote: tx:', message);
|
this._trace('remote: tx:', message);
|
||||||
|
|||||||
Reference in New Issue
Block a user