[bitcoin] Merged PR from achow101: Remove the legacy wallet and BDB dependency 
GitHub
Remove the legacy wallet and BDB dependency by achow101 ยท Pull Request #28710 ยท bitcoin/bitcoin
The final step of #20160.
A bare minimum of legacy wallet code is kept in order to perform wallet migration. Migration of legacy wallets uses the i...