Guard against prev block on csv in regtest
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
This commit is contained in:
parent
b4bc48552c
commit
55721a75f8
1 changed files with 2 additions and 2 deletions
|
@ -3679,8 +3679,8 @@ static bool ContextualCheckBlock(const CBlock& block, CValidationState& state, c
|
|||
// Start enforcing BIP113 (Median Time Past).
|
||||
int nLockTimeFlags = 0;
|
||||
if (nHeight >= consensusParams.CSVHeight) {
|
||||
assert(pindexPrev != nullptr);
|
||||
nLockTimeFlags |= LOCKTIME_MEDIAN_TIME_PAST;
|
||||
if (pindexPrev != nullptr)
|
||||
nLockTimeFlags |= LOCKTIME_MEDIAN_TIME_PAST;
|
||||
}
|
||||
|
||||
int64_t nLockTimeCutoff = (nLockTimeFlags & LOCKTIME_MEDIAN_TIME_PAST)
|
||||
|
|
Loading…
Reference in a new issue