| 77 | } |
| 78 | |
| 79 | CAmount OutputGetChange(const CWallet& wallet, const CTxOut& txout) |
| 80 | { |
| 81 | AssertLockHeld(wallet.cs_wallet); |
| 82 | if (!MoneyRange(txout.nValue)) |
| 83 | throw std::runtime_error(std::string(__func__) + ": value out of range"); |
| 84 | return (OutputIsChange(wallet, txout) ? txout.nValue : 0); |
| 85 | } |
| 86 | |
| 87 | CAmount TxGetChange(const CWallet& wallet, const CTransaction& tx) |
| 88 | { |
no test coverage detected