Skip to content

Commit

Permalink
Fixes #2275, transactionCommited txid list
Browse files Browse the repository at this point in the history
txid list was empty when emitted
  • Loading branch information
ph4r05 committed Jul 8, 2019
1 parent c4b3fba commit caeda05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/libwalletqt/Wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,8 @@ bool Wallet::submitTxFile(const QString &fileName) const
void Wallet::commitTransactionAsync(PendingTransaction *t)
{
m_scheduler.run([this, t] {
emit transactionCommitted(t->commit(), t, t->txid());
auto txIdList = t->txid();
emit transactionCommitted(t->commit(), t, txIdList);
});
}

Expand Down
2 changes: 1 addition & 1 deletion src/libwalletqt/Wallet.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class Wallet : public QObject
void walletCreationHeightChanged();
void deviceButtonRequest(quint64 buttonCode);
void deviceButtonPressed();
void transactionCommitted(bool status, PendingTransaction *t, QStringList txid);
void transactionCommitted(bool status, PendingTransaction *t, const QStringList& txid);
void heightRefreshed(quint64 walletHeight, quint64 daemonHeight, quint64 targetHeight) const;

// emitted when transaction is created async
Expand Down

0 comments on commit caeda05

Please sign in to comment.