2196 | @@ -2197,7 +2197,7 @@ CAmount CWallet::GetAvailableBalance(const CCoinControl* coinControl) const
2197 |
2198 | CAmount balance = 0;
2199 | std::vector<COutput> vCoins;
2200 | - AvailableCoins(vCoins, true, coinControl);
2201 | + AvailableCoins(vCoins, coinControl);
Not an actual refactor because this changes behavior. But in practice AMT there's no call to GetAvailableBalance with m_include_unsafe_inputs = true.
Good catch, it does change behavior here but is backwards-compatible so I think it should be ok.
If later we want to make GetAvailableBalance with m_include_unsafe_inputs = true possible, we can use coinControl for that.