Prevent duplicate 'transaction' events from Remote

This commit is contained in:
wltsmrz
2014-01-13 11:59:27 -08:00
parent 54b7099d01
commit 43eb4c3bfe

View File

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