aboutsummaryrefslogtreecommitdiff
path: root/src/libwalletqt/Wallet.cpp
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2022-05-28 02:02:17 +0200
committerselsta <selsta@sent.at>2022-05-28 03:15:18 +0200
commit6e0b5e2be5b8bc3df2c85fbc39b7f36ee588c110 (patch)
tree9c4ca420e10abc4f85dceefc1f1790718db9f410 /src/libwalletqt/Wallet.cpp
parent2e2ae5c88fdc159477e8bc9ad871a892da83e935 (diff)
downloadmonzero-gui-6e0b5e2be5b8bc3df2c85fbc39b7f36ee588c110.tar.gz
monzero-gui-6e0b5e2be5b8bc3df2c85fbc39b7f36ee588c110.tar.xz
monzero-gui-6e0b5e2be5b8bc3df2c85fbc39b7f36ee588c110.zip
libwallet: add scanTransactions function
Diffstat (limited to 'src/libwalletqt/Wallet.cpp')
-rw-r--r--src/libwalletqt/Wallet.cpp12
1 files changed, 12 insertions, 0 deletions
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 <chrono>
#include <stdexcept>
+#include <string>
#include <thread>
+#include <vector>
#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<QString> &txids)
+{
+ std::vector<std::string> c;
+ for (const auto &v : txids)
+ {
+ c.push_back(v.toStdString());
+ }
+ return m_walletImpl->scanTransactions(c);
+}
+
bool Wallet::refresh(bool historyAndSubaddresses /* = true */)
{
refreshingSet(true);