Lux modified: find last block index up to pindex
| 16 | |
| 17 | // Lux modified: find last block index up to pindex |
| 18 | const CBlockIndex* GetLastBlockIndex(const CBlockIndex* pindex, bool fProofOfStake) |
| 19 | { |
| 20 | while (pindex && pindex->pprev && (pindex->IsProofOfStake() != fProofOfStake)) |
| 21 | pindex = pindex->pprev; |
| 22 | return pindex; |
| 23 | } |
| 24 | |
| 25 | unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader* pblock, const Consensus::Params& consenusParams, bool fProofOfStake) |
| 26 | { |
no test coverage detected