MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / SetFee

Method SetFee

src/txgraph.cpp:2721–2736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2719}
2720
2721void 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
2738void SingletonClusterImpl::SetFee(TxGraphImpl& graph, int level, DepGraphIndex idx, int64_t fee) noexcept
2739{

Callers 1

SetTransactionFeeMethod · 0.80

Calls 2

FeeRateMethod · 0.80
SetClusterQualityMethod · 0.80

Tested by

no test coverage detected