aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.cpp
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-04-22 13:21:08 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-06-23 15:50:33 +0300
commitd500272fa87bea70054e1f97e1d64741721722bf (patch)
tree6736284bbf6c008a8e70954ca20c0d7d87ef5915 /src/wallet/api/wallet.cpp
parenttransaction history api in progress (diff)
downloadmonero-d500272fa87bea70054e1f97e1d64741721722bf.tar.xz
Wallet API : transaction history in progress
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-rw-r--r--src/wallet/api/wallet.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
index a665fff95..5f32908de 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -31,6 +31,7 @@
#include "wallet.h"
#include "pending_transaction.h"
+#include "transaction_history.h"
#include "common_defines.h"
#include "mnemonics/electrum-words.h"
@@ -58,10 +59,12 @@ WalletImpl::WalletImpl(bool testnet)
:m_wallet(nullptr), m_status(Wallet::Status_Ok)
{
m_wallet = new tools::wallet2(testnet);
+ m_history = new TransactionHistoryImpl(this);
}
WalletImpl::~WalletImpl()
{
+ delete m_history;
delete m_wallet;
}
@@ -388,7 +391,7 @@ void WalletImpl::disposeTransaction(PendingTransaction *t)
TransactionHistory *WalletImpl::history() const
{
- return nullptr;
+ return m_history;
}
bool WalletImpl::connectToDaemon()