mirror of
https://github.com/wownero/wowlet.git
synced 2026-11-28 11:04:15 +01:00
cleanup includes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user