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