cleanup includes

This commit is contained in:
tobtoht
2024-10-01 22:17:54 +02:00
parent a1836a64b2
commit 8ab420b802
117 changed files with 250 additions and 230 deletions
+22 -1
View File
@@ -12,6 +12,7 @@
#include "SubaddressAccount.h"
#include "TransactionHistory.h"
#include "WalletManager.h"
#include "WalletListenerImpl.h"
#include "config.h"
#include "constants.h"
@@ -357,6 +358,22 @@ void Wallet::setSeedLanguage(const QString &lang)
m_wallet2->set_seed_language(lang.toStdString());
}
QString Wallet::getSecretViewKey() const {
return QString::fromStdString(m_walletImpl->secretViewKey());
}
QString Wallet::getPublicViewKey() const {
return QString::fromStdString(m_walletImpl->publicViewKey());
}
QString Wallet::getSecretSpendKey() const {
return QString::fromStdString(m_walletImpl->secretSpendKey());
}
QString Wallet::getPublicSpendKey() const {
return QString::fromStdString(m_walletImpl->publicSpendKey());
}
// #################### Node connection ####################
void Wallet::setOffline(bool offline) {
@@ -866,7 +883,7 @@ void Wallet::createTransaction(const QString &address, quint64 amount, const QSt
m_scheduler.run([this, all, address, amount, feeLevel, subtractFeeFromAmount] {
std::set<uint32_t> subaddr_indices;
Monero::PendingTransaction *ptImpl = m_walletImpl->createTransaction(address.toStdString(), "", all ? Monero::optional<uint64_t>() : Monero::optional<uint64_t>(amount), constants::mixin,
Monero::PendingTransaction *ptImpl = m_walletImpl->createTransaction(address.toStdString(), "", all ? std::optional<uint64_t>() : std::optional<uint64_t>(amount), constants::mixin,
static_cast<Monero::PendingTransaction::Priority>(feeLevel),
currentSubaddressAccount(), subaddr_indices, m_selectedInputs, subtractFeeFromAmount);
@@ -1331,6 +1348,10 @@ bool Wallet::setRingDatabase(const QString &path) {
return m_walletImpl->setRingDatabase(path.toStdString());
}
quint64 Wallet::getWalletCreationHeight() const {
return m_walletImpl->getRefreshFromBlockHeight();
}
void Wallet::setWalletCreationHeight(quint64 height) {
m_wallet2->set_refresh_from_block_height(height);
}