1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-15 15:16:57 +01:00

libwallet: add scanTransactions function

This commit is contained in:
selsta 2022-05-28 02:02:17 +02:00
parent 2e2ae5c88f
commit 6e0b5e2be5
No known key found for this signature in database
GPG Key ID: 2EA0A99A8B07AE5E
2 changed files with 15 additions and 0 deletions

View File

@ -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);

View File

@ -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<QString> &txids);
//! refreshes the wallet
Q_INVOKABLE bool refresh(bool historyAndSubaddresses = true);