Get the sum of all fees/sizes in the graph. */
| 122 | |
| 123 | /** Get the sum of all fees/sizes in the graph. */ |
| 124 | FeePerWeight SumAll() const |
| 125 | { |
| 126 | FeePerWeight ret; |
| 127 | for (auto i : graph.Positions()) { |
| 128 | ret += graph.FeeRate(i); |
| 129 | } |
| 130 | return ret; |
| 131 | } |
| 132 | |
| 133 | /** Get the position where ref occurs in this simulated graph, or -1 if it does not. */ |
| 134 | Pos Find(const TxGraph::Ref* ref) const |