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

Method SetTransactionFee

src/test/fuzz/txgraph.cpp:180–187  ·  view source on GitHub ↗

Modify the transaction fee of a ref, if it exists. */

Source from the content-addressed store, hash-verified

178
179 /** Modify the transaction fee of a ref, if it exists. */
180 void SetTransactionFee(TxGraph::Ref* ref, int64_t fee)
181 {
182 auto pos = Find(ref);
183 if (pos == MISSING) return;
184 // No need to invoke MakeModified, because this equally affects main and staging.
185 real_is_optimal = false;
186 graph.FeeRate(pos).fee = fee;
187 }
188
189 /** Remove the transaction in the specified position from the graph. */
190 void RemoveTransaction(TxGraph::Ref* ref)

Callers 1

FUZZ_TARGETFunction · 0.45

Calls 2

FindFunction · 0.85
FeeRateMethod · 0.80

Tested by

no test coverage detected