@ -64,10 +64,12 @@ uint256 SendCoins(CWallet& wallet, SendCoinsDialog& sendCoinsDialog, const CTxDe
SendCoinsEntry * entry = qobject_cast < SendCoinsEntry * > ( entries - > itemAt ( 0 ) - > widget ( ) ) ;
entry - > findChild < QValidatedLineEdit * > ( " payTo " ) - > setText ( QString : : fromStdString ( EncodeDestination ( address ) ) ) ;
entry - > findChild < BitcoinAmountField * > ( " payAmount " ) - > setValue ( amount ) ;
/* Litecon: Disabled RBF UI
sendCoinsDialog . findChild < QFrame * > ( " frameFee " )
- > findChild < QFrame * > ( " frameFeeSelection " )
- > findChild < QCheckBox * > ( " optInRBF " )
- > setCheckState ( rbf ? Qt : : Checked : Qt : : Unchecked ) ;
*/
uint256 txid ;
boost : : signals2 : : scoped_connection c ( wallet . NotifyTransactionChanged . connect ( [ & txid ] ( CWallet * , const uint256 & hash , ChangeType status ) {
if ( status = = CT_NEW ) txid = hash ;
@ -93,6 +95,7 @@ QModelIndex FindTx(const QAbstractItemModel& model, const uint256& txid)
}
//! Invoke bumpfee on txid and check results.
/* Litecoin: Disable RBF
void BumpFee ( TransactionView & view , const uint256 & txid , bool expectDisabled , std : : string expectError , bool cancel )
{
QTableView * table = view . findChild < QTableView * > ( " transactionView " ) ;
@ -117,6 +120,7 @@ void BumpFee(TransactionView& view, const uint256& txid, bool expectDisabled, st
action - > trigger ( ) ;
QVERIFY ( text . indexOf ( QString : : fromStdString ( expectError ) ) ! = - 1 ) ;
}
*/
//! Simple qt wallet tests.
//
@ -191,10 +195,11 @@ void TestGUI(interfaces::Node& node)
QVERIFY ( FindTx ( * transactionTableModel , txid2 ) . isValid ( ) ) ;
// Call bumpfee. Test disabled, canceled, enabled, then failing cases.
BumpFee ( transactionView , txid1 , true /* expect disabled */ , " not BIP 125 replaceable " /* expected error */ , false /* cancel */ ) ;
BumpFee ( transactionView , txid2 , false /* expect disabled */ , { } /* expected error */ , true /* cancel */ ) ;
BumpFee ( transactionView , txid2 , false /* expect disabled */ , { } /* expected error */ , false /* cancel */ ) ;
BumpFee ( transactionView , txid2 , true /* expect disabled */ , " already bumped " /* expected error */ , false /* cancel */ ) ;
// Litecoin: Disable BumpFee tests
// BumpFee(transactionView, txid1, true /* expect disabled */, "not BIP 125 replaceable" /* expected error */, false /* cancel */);
// BumpFee(transactionView, txid2, false /* expect disabled */, {} /* expected error */, true /* cancel */);
// BumpFee(transactionView, txid2, false /* expect disabled */, {} /* expected error */, false /* cancel */);
// BumpFee(transactionView, txid2, true /* expect disabled */, "already bumped" /* expected error */, false /* cancel */);
// Check current balance on OverviewPage
OverviewPage overviewPage ( platformStyle . get ( ) ) ;