-
Notifications
You must be signed in to change notification settings - Fork 353
Remove opt-in RBF #936
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Remove opt-in RBF #936
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -179,13 +179,6 @@ void SendCoinsDialog::setModel(WalletModel *_model) | |
| connect(ui->groupFee, &QButtonGroup::idClicked, this, &SendCoinsDialog::coinControlUpdateLabels); | ||
|
|
||
| connect(ui->customFee, &BitcoinAmountField::valueChanged, this, &SendCoinsDialog::coinControlUpdateLabels); | ||
| #if (QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)) | ||
| connect(ui->optInRBF, &QCheckBox::checkStateChanged, this, &SendCoinsDialog::updateSmartFeeLabel); | ||
| connect(ui->optInRBF, &QCheckBox::checkStateChanged, this, &SendCoinsDialog::coinControlUpdateLabels); | ||
| #else | ||
| connect(ui->optInRBF, &QCheckBox::stateChanged, this, &SendCoinsDialog::updateSmartFeeLabel); | ||
| connect(ui->optInRBF, &QCheckBox::stateChanged, this, &SendCoinsDialog::coinControlUpdateLabels); | ||
| #endif | ||
| CAmount requiredFee = model->wallet().getRequiredFee(1000); | ||
| ui->customFee->SetMinValue(requiredFee); | ||
| if (ui->customFee->value() < requiredFee) { | ||
|
|
@@ -195,9 +188,6 @@ void SendCoinsDialog::setModel(WalletModel *_model) | |
| updateFeeSectionControls(); | ||
| updateSmartFeeLabel(); | ||
|
|
||
| // set default rbf checkbox state | ||
| ui->optInRBF->setCheckState(Qt::Checked); | ||
|
|
||
| if (model->wallet().hasExternalSigner()) { | ||
| //: "device" usually means a hardware wallet. | ||
| ui->sendButton->setText(tr("Sign on device")); | ||
|
|
@@ -360,17 +350,12 @@ bool SendCoinsDialog::PrepareSendText(QString& question_string, QString& informa | |
| question_string.append("<span style='color:#aa0000; font-weight:bold;'>"); | ||
| question_string.append(BitcoinUnits::formatHtmlWithUnit(model->getOptionsModel()->getDisplayUnit(), txFee)); | ||
| question_string.append("</span><br />"); | ||
|
|
||
| // append RBF message according to transaction's signalling | ||
| question_string.append("<span style='font-size:10pt; font-weight:normal;'>"); | ||
| if (ui->optInRBF->isChecked()) { | ||
| question_string.append(tr("You can increase the fee later (signals Replace-By-Fee, BIP-125).")); | ||
| } else { | ||
| question_string.append(tr("Not signalling Replace-By-Fee, BIP-125.")); | ||
| } | ||
| question_string.append("</span>"); | ||
| } | ||
|
|
||
| // append RBF message | ||
| question_string.append("<span style='font-size:10pt; font-weight:normal;'>"); | ||
| question_string.append(tr("You can increase the fee later.")); | ||
|
Comment on lines
+355
to
+357
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What if Bitcoin Core is run with
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have to test to ensure there's no random check that blocks the transaction from being broadcasted but it is redundant. Anyway there is work ongoing towards deprecating and removing it. Edit: Just checked and it doesn't matter, the wallet still broadcast it, we are not enforcing RBF even if |
||
|
|
||
| // add total amount in all subdivision units | ||
| question_string.append("<hr />"); | ||
| CAmount totalAmount = m_current_transaction->getTotalTransactionAmount() + txFee; | ||
|
|
@@ -834,7 +819,6 @@ void SendCoinsDialog::updateCoinControlState() | |
| // Avoid using global defaults when sending money from the GUI | ||
| // Either custom fee will be used or if not selected, the confirmation target from dropdown box | ||
| m_coin_control->m_confirm_target = getConfTargetForIndex(ui->confTargetSelector->currentIndex()); | ||
| m_coin_control->m_signal_bip125_rbf = ui->optInRBF->isChecked(); | ||
| } | ||
|
|
||
| void SendCoinsDialog::updateNumberOfBlocks(int count, const QDateTime& blockDate, double nVerificationProgress, SyncType synctype, SynchronizationState sync_state) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.