wallet: fix adding of tx.

This commit is contained in:
Christopher Jeffrey 2016-10-04 05:32:00 -07:00
parent 874d725f40
commit a41d27e828
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1435,7 +1435,7 @@ Wallet.prototype._send = co(function* send(options) {
tx = tx.toTX();
yield this.addTX(tx);
yield this.db.addTX(tx);
this.logger.debug('Sending wallet tx (%s): %s', this.id, tx.rhash);
this.db.emit('send', tx);