Add a dependency between two positions in this graph. */
| 164 | |
| 165 | /** Add a dependency between two positions in this graph. */ |
| 166 | void AddDependency(TxGraph::Ref* parent, TxGraph::Ref* child) |
| 167 | { |
| 168 | auto par_pos = Find(parent); |
| 169 | if (par_pos == MISSING) return; |
| 170 | auto chl_pos = Find(child); |
| 171 | if (chl_pos == MISSING) return; |
| 172 | graph.AddDependencies(SetType::Singleton(par_pos), chl_pos); |
| 173 | MakeModified(par_pos); |
| 174 | real_is_optimal = false; |
| 175 | // This may invalidate our cached oversized value. |
| 176 | if (oversized.has_value() && !*oversized) oversized = std::nullopt; |
| 177 | } |
| 178 | |
| 179 | /** Modify the transaction fee of a ref, if it exists. */ |
| 180 | void SetTransactionFee(TxGraph::Ref* ref, int64_t fee) |
no test coverage detected