| 2719 | } |
| 2720 | |
| 2721 | void GenericClusterImpl::SetFee(TxGraphImpl& graph, int level, DepGraphIndex idx, int64_t fee) noexcept |
| 2722 | { |
| 2723 | // Make sure the specified DepGraphIndex exists in this Cluster. |
| 2724 | Assume(m_depgraph.Positions()[idx]); |
| 2725 | // Bail out if the fee isn't actually being changed. |
| 2726 | if (m_depgraph.FeeRate(idx).fee == fee) return; |
| 2727 | // Update the fee, remember that relinearization will be necessary, and update the Entries |
| 2728 | // in the same Cluster. |
| 2729 | m_depgraph.FeeRate(idx).fee = fee; |
| 2730 | if (m_quality == QualityLevel::OVERSIZED_SINGLETON) { |
| 2731 | // Nothing to do. |
| 2732 | } else if (IsAcceptable()) { |
| 2733 | graph.SetClusterQuality(level, m_quality, m_setindex, QualityLevel::NEEDS_RELINEARIZE); |
| 2734 | } |
| 2735 | Updated(graph, /*level=*/level, /*rename=*/false); |
| 2736 | } |
| 2737 | |
| 2738 | void SingletonClusterImpl::SetFee(TxGraphImpl& graph, int level, DepGraphIndex idx, int64_t fee) noexcept |
| 2739 | { |
no test coverage detected