mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-27 07:35:52 +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)) {
|
||||
break;
|
||||
} else if (message.validated) {
|
||||
this._received_tx[hash] = true;
|
||||
}
|
||||
|
||||
if (message.validated) {
|
||||
this._received_tx.set(hash, true);
|
||||
}
|
||||
|
||||
this._trace('remote: tx:', message);
|
||||
|
||||
Reference in New Issue
Block a user