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 11581158 </item >
11591159 </layout >
11601160 </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 >
11611171 </layout >
11621172 </widget >
11631173 </item >
11681178 </property >
11691179 <property name =" sizeHint" stdset =" 0" >
11701180 <size >
1171- <width >800 </width >
1172- <height >1 </height >
1181+ <width >40 </width >
1182+ <height >5 </height >
11731183 </size >
11741184 </property >
11751185 </spacer >
Original file line number Diff line number Diff line change @@ -245,6 +245,8 @@ void SendCoinsDialog::on_sendButton_clicked()
245245 else
246246 ctrl.nConfirmTarget = 0 ;
247247
248+ ctrl.signalRbf = ui->optInRBF ->isChecked ();
249+
248250 prepareStatus = model->prepareTransaction (currentTransaction, &ctrl);
249251
250252 // process prepareStatus and on error generate message shown to user
@@ -324,6 +326,13 @@ void SendCoinsDialog::on_sendButton_clicked()
324326 questionString.append (QString (" <span style='font-size:10pt;font-weight:normal;'><br />(=%2)</span>" )
325327 .arg (alternativeUnits.join (" " + tr (" or" ) + " <br />" )));
326328
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+
327336 SendConfirmationDialog confirmationDialog (tr (" Confirm send coins" ),
328337 questionString.arg (formatted.join (" <br />" )), SEND_CONFIRM_DELAY, this );
329338 confirmationDialog.exec ();
You can’t perform that action at this time.
0 commit comments