MCPcopy Create free account
hub / github.com/ElementsProject/elements / StateName

Function StateName

src/test/versionbits_tests.cpp:18–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16static int32_t TestTime(int nHeight) { return 1415926536 + 600 * nHeight; }
17
18static 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
30static const Consensus::Params paramsDummy = Consensus::Params();
31

Callers 1

VersionBitsTesterClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected