| 234 | } |
| 235 | |
| 236 | void CoinsResult::Add(OutputType type, const COutput& out) |
| 237 | { |
| 238 | coins[type].emplace_back(out); |
| 239 | total_amount += out.txout.nValue; |
| 240 | if (out.HasEffectiveValue()) { |
| 241 | total_effective_amount = total_effective_amount.has_value() ? |
| 242 | *total_effective_amount + out.GetEffectiveValue() : out.GetEffectiveValue(); |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | static OutputType GetOutputType(TxoutType type, bool is_from_p2sh) |
| 247 | { |