diff options
| author | Karl-Johan Alm <[email protected]> | 2018-11-29 13:14:58 +0900 |
|---|---|---|
| committer | Karl-Johan Alm <[email protected]> | 2018-11-29 14:15:39 +0900 |
| commit | fbaaf782cea54dc433e72129ee1088b3169cdfd4 (patch) | |
| tree | 0b4c42c76bb94e44a81bce40cb6d2058a66adf60 /src/validation.cpp | |
| parent | Merge #14822: bench: Destroy wallet txs instead of leaking their memory (diff) | |
| download | discoin-fbaaf782cea54dc433e72129ee1088b3169cdfd4.tar.xz discoin-fbaaf782cea54dc433e72129ee1088b3169cdfd4.zip | |
validation: assert that pindexPrev is non-null when required
Diffstat (limited to 'src/validation.cpp')
| -rw-r--r-- | src/validation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 6333dd98d..e4d7d148e 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -3267,6 +3267,7 @@ static bool ContextualCheckBlock(const CBlock& block, CValidationState& state, c // Start enforcing BIP113 (Median Time Past) using versionbits logic. int nLockTimeFlags = 0; if (VersionBitsState(pindexPrev, consensusParams, Consensus::DEPLOYMENT_CSV, versionbitscache) == ThresholdState::ACTIVE) { + assert(pindexPrev != nullptr); nLockTimeFlags |= LOCKTIME_MEDIAN_TIME_PAST; } |