Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsdialog.cpp
// Copyright (c) 2011-2016 The Bitcoin Core developers | // Copyright (c) 2011-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include "sendcoinsdialog.h" | #include "sendcoinsdialog.h" | ||||
#include "ui_sendcoinsdialog.h" | #include "ui_sendcoinsdialog.h" | ||||
#include "addresstablemodel.h" | #include "addresstablemodel.h" | ||||
#include "bitcoinunits.h" | #include "bitcoinunits.h" | ||||
#include "clientmodel.h" | #include "clientmodel.h" | ||||
#include "coincontroldialog.h" | #include "coincontroldialog.h" | ||||
#include "config.h" | |||||
#include "guiutil.h" | #include "guiutil.h" | ||||
#include "optionsmodel.h" | #include "optionsmodel.h" | ||||
#include "platformstyle.h" | #include "platformstyle.h" | ||||
#include "sendcoinsentry.h" | #include "sendcoinsentry.h" | ||||
#include "walletmodel.h" | #include "walletmodel.h" | ||||
#include "chainparams.h" | #include "chainparams.h" | ||||
#include "dstencode.h" | #include "dstencode.h" | ||||
▲ Show 20 Lines • Show All 579 Lines • ▼ Show 20 Lines | switch (sendCoinsReturn.status) { | ||||
tr("The transaction was rejected with the following reason: %1") | tr("The transaction was rejected with the following reason: %1") | ||||
.arg(sendCoinsReturn.reasonCommitFailed); | .arg(sendCoinsReturn.reasonCommitFailed); | ||||
msgParams.second = CClientUIInterface::MSG_ERROR; | msgParams.second = CClientUIInterface::MSG_ERROR; | ||||
break; | break; | ||||
case WalletModel::AbsurdFee: | case WalletModel::AbsurdFee: | ||||
msgParams.first = | msgParams.first = | ||||
tr("A fee higher than %1 is considered an absurdly high fee.") | tr("A fee higher than %1 is considered an absurdly high fee.") | ||||
.arg(BitcoinUnits::formatWithUnit( | .arg(BitcoinUnits::formatWithUnit( | ||||
model->getOptionsModel()->getDisplayUnit(), maxTxFee)); | model->getOptionsModel()->getDisplayUnit(), | ||||
GetConfig().GetMaxFee())); | |||||
break; | break; | ||||
case WalletModel::PaymentRequestExpired: | case WalletModel::PaymentRequestExpired: | ||||
msgParams.first = tr("Payment request expired."); | msgParams.first = tr("Payment request expired."); | ||||
msgParams.second = CClientUIInterface::MSG_ERROR; | msgParams.second = CClientUIInterface::MSG_ERROR; | ||||
break; | break; | ||||
// included to prevent a compiler warning. | // included to prevent a compiler warning. | ||||
case WalletModel::OK: | case WalletModel::OK: | ||||
default: | default: | ||||
▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines |