mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Prevent duplicate 'transaction' events from Remote
This commit is contained in:
@@ -445,9 +445,9 @@ Remote.prototype._handleMessage = function(message, server) {
|
||||
// De-duplicate transactions that are immediately following each other
|
||||
var hash = message.transaction.hash;
|
||||
|
||||
if (this._received_tx.hasOwnProperty(hash)) break;
|
||||
|
||||
if (message.transaction.validated) {
|
||||
if (this._received_tx.hasOwnProperty(hash)) {
|
||||
break;
|
||||
} else if (message.validated) {
|
||||
this._received_tx[hash] = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user