mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
[Wallet] Use RBF by default in QT only
GUI wallet uses RBF by default, regardless of -walletrbf. RPC and debug console in the GUI remain unchanged; they don't use RBF by default, unless launched with -walletrbf=1.
This commit is contained in:
@@ -184,7 +184,7 @@ void SendCoinsDialog::setModel(WalletModel *_model)
|
||||
updateSmartFeeLabel();
|
||||
|
||||
// set default rbf checkbox state
|
||||
ui->optInRBF->setCheckState(model->getDefaultWalletRbf() ? Qt::Checked : Qt::Unchecked);
|
||||
ui->optInRBF->setCheckState(Qt::Checked);
|
||||
|
||||
// set the smartfee-sliders default value (wallets default conf.target or last stored value)
|
||||
QSettings settings;
|
||||
@@ -342,12 +342,14 @@ void SendCoinsDialog::on_sendButton_clicked()
|
||||
questionString.append(QString("<span style='font-size:10pt;font-weight:normal;'><br />(=%2)</span>")
|
||||
.arg(alternativeUnits.join(" " + tr("or") + "<br />")));
|
||||
|
||||
if (ui->optInRBF->isChecked())
|
||||
{
|
||||
questionString.append("<hr /><span>");
|
||||
questionString.append(tr("You can increase the fee later (signals Replace-By-Fee)."));
|
||||
questionString.append("</span>");
|
||||
questionString.append("<hr /><span>");
|
||||
if (ui->optInRBF->isChecked()) {
|
||||
questionString.append(tr("You can increase the fee later (signals Replace-By-Fee, BIP-125)."));
|
||||
} else {
|
||||
questionString.append(tr("Not signalling Replace-By-Fee, BIP-125."));
|
||||
}
|
||||
questionString.append("</span>");
|
||||
|
||||
|
||||
SendConfirmationDialog confirmationDialog(tr("Confirm send coins"),
|
||||
questionString.arg(formatted.join("<br />")), SEND_CONFIRM_DELAY, this);
|
||||
|
||||
Reference in New Issue
Block a user