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,7 +3679,7 @@ static bool ContextualCheckBlock(const CBlock& block, CValidationState& state, c
|
||||||
// Start enforcing BIP113 (Median Time Past).
|
// Start enforcing BIP113 (Median Time Past).
|
||||||
int nLockTimeFlags = 0;
|
int nLockTimeFlags = 0;
|
||||||
if (nHeight >= consensusParams.CSVHeight) {
|
if (nHeight >= consensusParams.CSVHeight) {
|
||||||
assert(pindexPrev != nullptr);
|
if (pindexPrev != nullptr)
|
||||||
nLockTimeFlags |= LOCKTIME_MEDIAN_TIME_PAST;
|
nLockTimeFlags |= LOCKTIME_MEDIAN_TIME_PAST;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue