Skip to content
Permalink
Browse files

Fixes #2275, transactionCommited txid list

txid list was empty when emitted
  • Loading branch information...
ph4r05 committed Jul 8, 2019
1 parent c4b3fba commit caeda055fea53b53544a00efbadd2712b3d0318d
Showing with 3 additions and 2 deletions.
  1. +2 −1 src/libwalletqt/Wallet.cpp
  2. +1 −1 src/libwalletqt/Wallet.h
@@ -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);
});
}

@@ -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

0 comments on commit caeda05

Please sign in to comment.
You can’t perform that action at this time.