File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1158
1158
</item >
1159
1159
</layout >
1160
1160
</item >
1161
+ <item >
1162
+ <widget class =" QCheckBox" name =" optInRBF" >
1163
+ <property name =" text" >
1164
+ <string >Request Replace-By-Fee</string >
1165
+ </property >
1166
+ <property name =" toolTip" >
1167
+ <string >Indicates that the sender may wish to replace this transaction with a new one paying higher fees (prior to being confirmed).</string >
1168
+ </property >
1169
+ </widget >
1170
+ </item >
1161
1171
</layout >
1162
1172
</widget >
1163
1173
</item >
1168
1178
</property >
1169
1179
<property name =" sizeHint" stdset =" 0" >
1170
1180
<size >
1171
- <width >800 </width >
1172
- <height >1 </height >
1181
+ <width >40 </width >
1182
+ <height >5 </height >
1173
1183
</size >
1174
1184
</property >
1175
1185
</spacer >
Original file line number Diff line number Diff line change @@ -245,6 +245,8 @@ void SendCoinsDialog::on_sendButton_clicked()
245
245
else
246
246
ctrl.nConfirmTarget = 0 ;
247
247
248
+ ctrl.signalRbf = ui->optInRBF ->isChecked ();
249
+
248
250
prepareStatus = model->prepareTransaction (currentTransaction, &ctrl);
249
251
250
252
// process prepareStatus and on error generate message shown to user
@@ -324,6 +326,13 @@ void SendCoinsDialog::on_sendButton_clicked()
324
326
questionString.append (QString (" <span style='font-size:10pt;font-weight:normal;'><br />(=%2)</span>" )
325
327
.arg (alternativeUnits.join (" " + tr (" or" ) + " <br />" )));
326
328
329
+ if (ui->optInRBF ->isChecked ())
330
+ {
331
+ questionString.append (" <hr /><span>" );
332
+ questionString.append (tr (" This transaction signals replaceability (optin-RBF)." ));
333
+ questionString.append (" </span>" );
334
+ }
335
+
327
336
SendConfirmationDialog confirmationDialog (tr (" Confirm send coins" ),
328
337
questionString.arg (formatted.join (" <br />" )), SEND_CONFIRM_DELAY, this );
329
338
confirmationDialog.exec ();
You can’t perform that action at this time.
0 commit comments