MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / StateName

Function StateName

src/versionbits.cpp:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12using enum ThresholdState;
13
14std::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
26ThresholdState AbstractThresholdConditionChecker::GetStateFor(const CBlockIndex* pindexPrev, ThresholdConditionCache& cache) const
27{

Callers 2

InfoMethod · 0.85
VersionBitsTesterClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected