| 172 | } |
| 173 | |
| 174 | CAmountMap CachedTxGetDebit(const CWallet& wallet, const CWalletTx& wtx, const isminefilter& filter) |
| 175 | { |
| 176 | if (wtx.tx->vin.empty()) |
| 177 | return CAmountMap(); |
| 178 | |
| 179 | CAmountMap debit; |
| 180 | if (filter & ISMINE_SPENDABLE) { |
| 181 | debit += GetCachableAmount(wallet, wtx, CWalletTx::DEBIT, ISMINE_SPENDABLE); |
| 182 | } |
| 183 | if (filter & ISMINE_WATCH_ONLY) { |
| 184 | debit += GetCachableAmount(wallet, wtx, CWalletTx::DEBIT, ISMINE_WATCH_ONLY); |
| 185 | } |
| 186 | return debit; |
| 187 | } |
| 188 | |
| 189 | CAmountMap CachedTxGetChange(const CWallet& wallet, const CWalletTx& wtx) |
| 190 | { |
no test coverage detected