diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index eef80b97..cec8378e 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -30,7 +30,9 @@ #include #include +#include #include +#include #include "PendingTransaction.h" #include "UnsignedTransaction.h" @@ -507,6 +509,16 @@ bool Wallet::importOutputs(const QString& path) { return m_walletImpl->importOutputs(path.toStdString()); } +bool Wallet::scanTransactions(const QVector &txids) +{ + std::vector c; + for (const auto &v : txids) + { + c.push_back(v.toStdString()); + } + return m_walletImpl->scanTransactions(c); +} + bool Wallet::refresh(bool historyAndSubaddresses /* = true */) { refreshingSet(true); diff --git a/src/libwalletqt/Wallet.h b/src/libwalletqt/Wallet.h index a81b4555..039417d8 100644 --- a/src/libwalletqt/Wallet.h +++ b/src/libwalletqt/Wallet.h @@ -212,6 +212,9 @@ public: Q_INVOKABLE bool exportOutputs(const QString& path, bool all = false); Q_INVOKABLE bool importOutputs(const QString& path); + //! scan transactions + Q_INVOKABLE bool scanTransactions(const QVector &txids); + //! refreshes the wallet Q_INVOKABLE bool refresh(bool historyAndSubaddresses = true);