1
mirror of https://github.com/monero-project/monero-gui synced 2025-01-06 19:26:23 +01:00

Merge pull request #2276

4b0d1dc Fixes #2275, transactionCommited txid list (ph4r05)
This commit is contained in:
luigi1111 2019-07-15 18:41:19 -05:00
commit 0abd21b434
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
2 changed files with 3 additions and 2 deletions

View File

@ -524,7 +524,8 @@ bool Wallet::submitTxFile(const QString &fileName) const
void Wallet::commitTransactionAsync(PendingTransaction *t) void Wallet::commitTransactionAsync(PendingTransaction *t)
{ {
m_scheduler.run([this, t] { m_scheduler.run([this, t] {
emit transactionCommitted(t->commit(), t, t->txid()); auto txIdList = t->txid(); // retrieve before commit
emit transactionCommitted(t->commit(), t, txIdList);
}); });
} }

View File

@ -351,7 +351,7 @@ signals:
void walletCreationHeightChanged(); void walletCreationHeightChanged();
void deviceButtonRequest(quint64 buttonCode); void deviceButtonRequest(quint64 buttonCode);
void deviceButtonPressed(); 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; void heightRefreshed(quint64 walletHeight, quint64 daemonHeight, quint64 targetHeight) const;
// emitted when transaction is created async // emitted when transaction is created async