mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-01 17:45:49 +00:00
Add transaction-inbound, transaction-outbound events
This commit is contained in:
@@ -193,9 +193,8 @@ Account.prototype.notifyTx = function (message) {
|
||||
// occurring.
|
||||
if (this._subs) {
|
||||
this.emit('transaction', message);
|
||||
try {
|
||||
var account = message.transaction.Account;
|
||||
} catch(exception) { }
|
||||
if (!message.transaction.Account) return;
|
||||
var account = message.transaction.Account;
|
||||
if (account === this._account_id) {
|
||||
this.emit('transaction-outbound', message);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user