From 4d94916f0dda535cb69b538ee4e3fffb5b033c87 Mon Sep 17 00:00:00 2001 From: Russell Yanofsky Date: Thu, 18 Jul 2019 12:06:23 -0400 Subject: Get rid of PendingWalletTx class. No reason for this class to exist if it doesn't have any code to run in the destructor. e10e1e8db043e9b7c113e07faf408f337c1b732d from https://github.com/bitcoin/bitcoin/pull/16208 recently removed code destructor code that would return an unused key if the transaction wasn't committed. --- src/qt/walletmodeltransaction.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/qt/walletmodeltransaction.h') diff --git a/src/qt/walletmodeltransaction.h b/src/qt/walletmodeltransaction.h index 289aee847b..a41d8f2457 100644 --- a/src/qt/walletmodeltransaction.h +++ b/src/qt/walletmodeltransaction.h @@ -16,7 +16,6 @@ class SendCoinsRecipient; namespace interfaces { class Node; -class PendingWalletTx; } /** Data model for a walletmodel transaction. */ @@ -27,7 +26,7 @@ public: QList getRecipients() const; - std::unique_ptr& getWtx(); + CTransactionRef& getWtx(); unsigned int getTransactionSize(); void setTransactionFee(const CAmount& newFee); @@ -39,7 +38,7 @@ public: private: QList recipients; - std::unique_ptr wtx; + CTransactionRef wtx; CAmount fee; }; -- cgit v1.2.3