From 6e0b5e2be5b8bc3df2c85fbc39b7f36ee588c110 Mon Sep 17 00:00:00 2001 From: selsta Date: Sat, 28 May 2022 02:02:17 +0200 Subject: libwallet: add scanTransactions function --- src/libwalletqt/Wallet.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/libwalletqt/Wallet.cpp') 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); -- cgit v1.2.3