| 136 | } |
| 137 | |
| 138 | CAmountMap TxGetChange(const CWallet& wallet, const CWalletTx& wtx) |
| 139 | { |
| 140 | LOCK(wallet.cs_wallet); |
| 141 | CAmountMap nChange = GetChange(wallet, wtx); |
| 142 | if (!MoneyRange(nChange)) |
| 143 | throw std::runtime_error(std::string(__func__) + ": value out of range"); |
| 144 | return nChange; |
| 145 | } |
| 146 | |
| 147 | static CAmountMap GetCachableAmount(const CWallet& wallet, const CWalletTx& wtx, CWalletTx::AmountType type, const isminefilter& filter, bool recalculate = false) |
| 148 | { |
no test coverage detected