mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 11:39:25 +00:00
send: fix default fee priority
This commit is contained in:
parent
fd4fbdb688
commit
83042f3d0f
3 changed files with 6 additions and 12 deletions
|
@ -22,13 +22,6 @@ public:
|
|||
};
|
||||
Q_ENUM(Status)
|
||||
|
||||
enum Priority {
|
||||
Priority_Low = Monero::PendingTransaction::Priority_Low,
|
||||
Priority_Medium = Monero::PendingTransaction::Priority_Medium,
|
||||
Priority_High = Monero::PendingTransaction::Priority_High
|
||||
};
|
||||
|
||||
|
||||
Status status() const;
|
||||
QString errorString() const;
|
||||
const std::exception_ptr getException() const;
|
||||
|
|
|
@ -838,7 +838,7 @@ void Wallet::createTransaction(const QString &address, quint64 amount, const QSt
|
|||
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,
|
||||
static_cast<Monero::PendingTransaction::Priority>(this->tx_priority),
|
||||
Monero::PendingTransaction::Priority_Default,
|
||||
currentSubaddressAccount(), subaddr_indices, m_selectedInputs);
|
||||
|
||||
QVector<QString> addresses{address};
|
||||
|
@ -865,7 +865,7 @@ void Wallet::createTransactionMultiDest(const QVector<QString> &addresses, const
|
|||
|
||||
std::set<uint32_t> subaddr_indices;
|
||||
Monero::PendingTransaction *ptImpl = m_walletImpl->createTransactionMultDest(dests, "", amount, constants::mixin,
|
||||
static_cast<Monero::PendingTransaction::Priority>(this->tx_priority),
|
||||
Monero::PendingTransaction::Priority_Default,
|
||||
currentSubaddressAccount(), subaddr_indices, m_selectedInputs);
|
||||
|
||||
this->onTransactionCreated(ptImpl, addresses);
|
||||
|
@ -885,7 +885,10 @@ void Wallet::sweepOutputs(const QVector<QString> &keyImages, QString address, bo
|
|||
for (const auto &key_image : keyImages) {
|
||||
kis.push_back(key_image.toStdString());
|
||||
}
|
||||
Monero::PendingTransaction *ptImpl = m_walletImpl->createTransactionSelected(kis, address.toStdString(), outputs, static_cast<Monero::PendingTransaction::Priority>(this->tx_priority));
|
||||
Monero::PendingTransaction *ptImpl = m_walletImpl->createTransactionSelected(kis,
|
||||
address.toStdString(),
|
||||
outputs,
|
||||
Monero::PendingTransaction::Priority_Default);
|
||||
|
||||
QVector<QString> addresses {address};
|
||||
this->onTransactionCreated(ptImpl, addresses);
|
||||
|
|
|
@ -405,8 +405,6 @@ public:
|
|||
//! create a view only wallet
|
||||
bool createViewOnly(const QString &path, const QString &password) const;
|
||||
|
||||
PendingTransaction::Priority tx_priority = PendingTransaction::Priority::Priority_Low;
|
||||
|
||||
QString tmpTxDescription; // TODO: remove the need for this var
|
||||
bool refreshedOnce = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue