File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,6 @@ class CCoinControl
89
89
// ! If true, the selection process can add extra unselected inputs from the wallet
90
90
// ! while requires all selected inputs be used
91
91
bool m_allow_other_inputs = true ;
92
- // ! Includes watch only addresses which are solvable
93
- bool fAllowWatchOnly = false ;
94
92
// ! Override automatic min/max checks on fee, m_feerate must be set if true
95
93
bool fOverrideFeeRate = false ;
96
94
// ! Override the wallet's m_pay_tx_fee if set
Original file line number Diff line number Diff line change @@ -1067,7 +1067,6 @@ static RPCHelpMan bumpfee_helper(std::string method_name)
1067
1067
Txid hash{Txid::FromUint256 (ParseHashV (request.params [0 ], " txid" ))};
1068
1068
1069
1069
CCoinControl coin_control;
1070
- coin_control.fAllowWatchOnly = pwallet->IsWalletFlagSet (WALLET_FLAG_DISABLE_PRIVATE_KEYS);
1071
1070
// optional parameters
1072
1071
coin_control.m_signal_bip125_rbf = true ;
1073
1072
std::vector<CTxOut> outputs;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ static bool IsSegwit(const Descriptor& desc) {
54
54
static bool UseMaxSig (const std::optional<CTxIn>& txin, const CCoinControl* coin_control) {
55
55
// Use max sig if watch only inputs were used or if this particular input is an external input
56
56
// to ensure a sufficient fee is attained for the requested feerate.
57
- return coin_control && (coin_control-> fAllowWatchOnly || ( txin && coin_control->IsExternalSelected (txin->prevout )) );
57
+ return coin_control && txin && coin_control->IsExternalSelected (txin->prevout );
58
58
}
59
59
60
60
/* * Get the size of an input (in witness units) once it's signed.
@@ -429,7 +429,7 @@ CoinsResult AvailableCoins(const CWallet& wallet,
429
429
// Because CalculateMaximumSignedInputSize infers a solvable descriptor to get the satisfaction size,
430
430
// it is safe to assume that this input is solvable if input_bytes is greater than -1.
431
431
bool solvable = input_bytes > -1 ;
432
- bool spendable = (( mine & ISMINE_SPENDABLE) != ISMINE_NO) || (((mine & ISMINE_WATCH_ONLY) != ISMINE_NO) && (coinControl && coinControl-> fAllowWatchOnly && solvable)) ;
432
+ bool spendable = (mine & ISMINE_SPENDABLE) != ISMINE_NO;
433
433
434
434
// Filter by spendable outputs only
435
435
if (!spendable && params.only_spendable ) continue ;
You can’t perform that action at this time.
0 commit comments