Elements: We use height, not time!
| 8 | |
| 9 | // Elements: We use height, not time! |
| 10 | int64_t GetBIP9Time(const CBlockIndex* pindexPrev, const Consensus::Params& params) { |
| 11 | if (params.elements_mode) { |
| 12 | return pindexPrev->nHeight; |
| 13 | } else { |
| 14 | return pindexPrev->GetMedianTimePast(); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | ThresholdState AbstractThresholdConditionChecker::GetStateFor(const CBlockIndex* pindexPrev, const Consensus::Params& params, ThresholdConditionCache& cache) const |
| 19 | { |
no test coverage detected