Modify the transaction fee of a ref, if it exists. */
| 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) |
no test coverage detected