[backport#15906] [wallet] Move min_depth and max_depth to coin control
Summary:
extract min & max depth onto coin control (Amiti Uttarwar)
Pull request description:
- Refactor AvailableCoins to pull min & max depths from coin control.
- Add m_max_depth to coin control to support this.
- Addresses issue https://github.com/bitcoin/bitcoin/issues/15823, see thread for further details.
https://github.com/bitcoin/bitcoin/pull/15906/commits/80ba4241a6773590f6b2c18dae758097b5adc02e
Backport of Core PR15906
Test Plan:
ninja check check-functional
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D7042