mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-14 06:32:33 +01:00
47ea70fbb8wallet: clean AllInputsMine code, use InputIsMine internally (furszy)bf310b0e8cwallet: clean InputIsMine code, use GetWalletTx (furszy)0cb177263cwallet: unify CachedTxGetImmatureCredit and CachedTxGetImmatureWatchOnlyCredit (furszy)04c6423f7bwallet: remove always true 'fUseCache' arg from CachedTxGetAvailableCredit (furszy)4f0ca9bff6wallet: remove always false 'recalculate' arg from GetCachableAmount (furszy)47b1012677wallet: remove always true 'fUseCache' from CachedTxGetImmatureWatchOnlyCredit (furszy)da8f62de2cwallet: remove always true 'fUseCache' from CachedTxGetImmatureCredit (furszy) Pull request description: Another wallet's code garbage collector work. Part of the `mapWallet` encapsulation goal. Focused on the following points: 1) Remove always true `fUseCache` argument from `CachedTxGetImmatureCredit`, `CachedTxGetImmatureWatchOnly` and `CachedTxGetAvailableCredit`. 2) Remove always false `recalculate` argument from `GetCachableAmount`. 3) Merge `CachedTxGetImmatureCredit` and `CachedTxGetImmatureWatchOnlyCredit` as they do share the exact same code. 4) Clean `InputIsMine` method; use `GetWalletTx` instead of access the wallet's map directly. 5) Clean `AllInputsMine` method; use `InputIsMine` instead of duplicate the exact same code internally. ACKs for top commit: aureleoules: re-ACK47ea70fbb8achow101: ACK47ea70fbb8theStack: re-ACK47ea70fbb8Tree-SHA512: e9b64b57de7be6165c5e5552e28cd8a03d4736b0a3707d29d129e3a0a3db6a855c2abf47a24917236060835a297b564a97b66d4c8b178d6bdafb93a12a7c0b40