libwalletqt: add make_uri function

This commit is contained in:
selsta
2021-09-05 05:48:32 +02:00
parent 113efbfdf0
commit dcc16a44be
4 changed files with 17 additions and 0 deletions

View File

@@ -925,6 +925,12 @@ bool Wallet::parse_uri(const QString &uri, QString &address, QString &payment_id
return res;
}
QString Wallet::make_uri(const QString &address, const quint64 &amount, const QString &tx_description, const QString &recipient_name) const
{
std::string error;
return QString::fromStdString(m_walletImpl->make_uri(address.toStdString(), "", amount, tx_description.toStdString(), recipient_name.toStdString(), error));
}
bool Wallet::rescanSpent()
{
QMutexLocker locker(&m_asyncMutex);