| 12 | using enum ThresholdState; |
| 13 | |
| 14 | std::string StateName(ThresholdState state) |
| 15 | { |
| 16 | switch (state) { |
| 17 | case DEFINED: return "defined"; |
| 18 | case STARTED: return "started"; |
| 19 | case LOCKED_IN: return "locked_in"; |
| 20 | case ACTIVE: return "active"; |
| 21 | case FAILED: return "failed"; |
| 22 | } |
| 23 | return "invalid"; |
| 24 | } |
| 25 | |
| 26 | ThresholdState AbstractThresholdConditionChecker::GetStateFor(const CBlockIndex* pindexPrev, ThresholdConditionCache& cache) const |
| 27 | { |
no outgoing calls
no test coverage detected