Another wallet's code garbage collector work. Part of the mapWallet encapsulation goal.
Focused on the following points:
- Remove always true
fUseCacheargument fromCachedTxGetImmatureCredit,CachedTxGetImmatureWatchOnlyandCachedTxGetAvailableCredit. - Remove always false
recalculateargument fromGetCachableAmount. - Merge
CachedTxGetImmatureCreditandCachedTxGetImmatureWatchOnlyCreditas they do share the exact same code. - Clean
InputIsMinemethod; useGetWalletTxinstead of access the wallet's map directly. - Clean
AllInputsMinemethod; useInputIsMineinstead of duplicate the exact same code internally.