| 16 | static int32_t TestTime(int nHeight) { return 1415926536 + 600 * nHeight; } |
| 17 | |
| 18 | static const std::string StateName(ThresholdState state) |
| 19 | { |
| 20 | switch (state) { |
| 21 | case ThresholdState::DEFINED: return "DEFINED"; |
| 22 | case ThresholdState::STARTED: return "STARTED"; |
| 23 | case ThresholdState::LOCKED_IN: return "LOCKED_IN"; |
| 24 | case ThresholdState::ACTIVE: return "ACTIVE"; |
| 25 | case ThresholdState::FAILED: return "FAILED"; |
| 26 | } // no default case, so the compiler can warn about missing cases |
| 27 | return ""; |
| 28 | } |
| 29 | |
| 30 | static const Consensus::Params paramsDummy = Consensus::Params(); |
| 31 | |