JS: Don't count OfferCancel transactions as trades. Hurp Durp.

This commit is contained in:
Stefan Thomas
2013-03-13 18:54:08 +01:00
parent c727fe2382
commit 83a9ae838a

View File

@@ -172,6 +172,9 @@ OrderBook.prototype.notifyTx = function (message)
}
}
// We don't want to count a OfferCancel as a trade
if (message.transaction.TransactionType === "OfferCancel") return;
trade_gets = trade_gets.add(an.fieldsPrev.TakerGets);
trade_pays = trade_pays.add(an.fieldsPrev.TakerPays);
if (an.diffType === 'ModifiedNode') {