| 621 | } |
| 622 | |
| 623 | void UpdateTime(CBlockHeader &block, const CBlockIndex *pIndexPrev) { |
| 624 | block.SetTime(max(pIndexPrev->GetMedianTimePast() + 1, GetAdjustedTime())); |
| 625 | } |
| 626 | |
| 627 | bool DisconnectBlock(CBlock &block, CCacheWrapper &cw, CBlockIndex *pIndex, CValidationState &state, bool *pfClean) { |
| 628 | auto bmTx = MAKE_BENCHMARK("DisconnectBlock"); |
nothing calls this directly
no test coverage detected