[Qt] Add simple optin-RBF checkbox and confirmation info
This commit is contained in:
parent
568c05a591
commit
838a58e7ca
2 changed files with 21 additions and 2 deletions
|
@ -1158,6 +1158,16 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="optInRBF">
|
||||||
|
<property name="text">
|
||||||
|
<string>Request Replace-By-Fee</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Indicates that the sender may wish to replace this transaction with a new one paying higher fees (prior to being confirmed).</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -1168,8 +1178,8 @@
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>800</width>
|
<width>40</width>
|
||||||
<height>1</height>
|
<height>5</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
|
|
|
@ -245,6 +245,8 @@ void SendCoinsDialog::on_sendButton_clicked()
|
||||||
else
|
else
|
||||||
ctrl.nConfirmTarget = 0;
|
ctrl.nConfirmTarget = 0;
|
||||||
|
|
||||||
|
ctrl.signalRbf = ui->optInRBF->isChecked();
|
||||||
|
|
||||||
prepareStatus = model->prepareTransaction(currentTransaction, &ctrl);
|
prepareStatus = model->prepareTransaction(currentTransaction, &ctrl);
|
||||||
|
|
||||||
// process prepareStatus and on error generate message shown to user
|
// process prepareStatus and on error generate message shown to user
|
||||||
|
@ -324,6 +326,13 @@ void SendCoinsDialog::on_sendButton_clicked()
|
||||||
questionString.append(QString("<span style='font-size:10pt;font-weight:normal;'><br />(=%2)</span>")
|
questionString.append(QString("<span style='font-size:10pt;font-weight:normal;'><br />(=%2)</span>")
|
||||||
.arg(alternativeUnits.join(" " + tr("or") + "<br />")));
|
.arg(alternativeUnits.join(" " + tr("or") + "<br />")));
|
||||||
|
|
||||||
|
if (ui->optInRBF->isChecked())
|
||||||
|
{
|
||||||
|
questionString.append("<hr /><span>");
|
||||||
|
questionString.append(tr("This transaction signals replaceability (optin-RBF)."));
|
||||||
|
questionString.append("</span>");
|
||||||
|
}
|
||||||
|
|
||||||
SendConfirmationDialog confirmationDialog(tr("Confirm send coins"),
|
SendConfirmationDialog confirmationDialog(tr("Confirm send coins"),
|
||||||
questionString.arg(formatted.join("<br />")), SEND_CONFIRM_DELAY, this);
|
questionString.arg(formatted.join("<br />")), SEND_CONFIRM_DELAY, this);
|
||||||
confirmationDialog.exec();
|
confirmationDialog.exec();
|
||||||
|
|
Loading…
Reference in a new issue