21 switch (sendCoinsReturn.
status) {
23 retStr = QObject::tr(
"The recipient address is not valid, please recheck.");
26 retStr = QObject::tr(
"The amount to pay must be larger than 0.");
29 retStr = QObject::tr(
"The amount to pay exceeds the available balance.");
33 "The total amount to pay exceeds the available balance when the %1 transaction fee is included.").arg(msgArg);
37 "Duplicate address found, can only send to each address once per send operation.");
43 retStr = QObject::tr(
"The transaction is not valid!");
57 "Error: The wallet was unlocked for staking only. Unlock canceled.");
60 retStr = QObject::tr(
"Error: The wallet is unlocked for staking only. Fully unlock the wallet to send the transaction.");
64 "A fee %1 times higher than %2 per kB is considered an insanely high fee.").arg(10000).arg(
81 if (!informMsg.isEmpty()) parent->
emitMessage(QObject::tr(
"Send Coins"), informMsg, informType,
nullptr);
static QString formatWithUnit(int unit, const CAmount &amount, bool plussign=false, SeparatorStyle separators=separatorStandard)
Format as string (with unit)
MessageBoxFlags
Flags for CClientUIInterface::ThreadSafeMessageBox.
CAmount GetFeePerK() const
Interface to PIVX wallet from Qt view code.
OptionsModel * getOptionsModel()
UnlockContext requestUnlock()
@ AmountWithFeeExceedsBalance
@ TransactionCreationFailed
@ TransactionCommitFailed
std::string ToString() const
void ProcessSendCoinsReturnAndInform(PWidget *parent, const WalletModel::SendCoinsReturn &sendCoinsReturn, WalletModel *walletModel, const QString &msgArg, bool fPrepare)
QString ProcessSendCoinsReturn(const WalletModel::SendCoinsReturn &sendCoinsReturn, WalletModel *walletModel, CClientUIInterface::MessageBoxFlags &informType, const QString &msgArg, bool fPrepare)
CWallet::CommitResult commitRes
CFeeRate minRelayTxFee
Fees smaller than this (in upiv) are considered zero fee (for relaying, mining and transaction creati...