| 483 | } |
| 484 | |
| 485 | CAmount OutputGroup::GetSelectionAmount() const |
| 486 | { |
| 487 | // ELEMENTS: non-policy assets always use `m_value`. Their (negative) |
| 488 | // `effective_value` will be added to the target for the policy asset |
| 489 | if (!m_outputs.empty() && m_outputs[0].asset != ::policyAsset) { |
| 490 | return m_value; |
| 491 | } |
| 492 | return m_subtract_fee_outputs ? m_value : effective_value; |
| 493 | } |
| 494 | |
| 495 | CAmount GetSelectionWaste(const std::set<CInputCoin>& inputs, CAmount change_cost, CAmount target, bool use_effective_value) |
| 496 | { |
no test coverage detected