From 01368b925ea0279546492c3b860180030a62e847 Mon Sep 17 00:00:00 2001 From: Just Wonder Date: Sat, 7 Mar 2020 20:45:05 -0800 Subject: [PATCH] Allowed BIP113 (Median Time Past) since beginning. --- src/validation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/validation.cpp b/src/validation.cpp index a8cb08a60..3283d4bf7 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -3245,7 +3245,7 @@ static bool ContextualCheckBlock(const CBlock& block, CValidationState& state, c } int64_t nLockTimeCutoff = (nLockTimeFlags & LOCKTIME_MEDIAN_TIME_PAST) - ? pindexPrev->GetMedianTimePast() + ? (pindexPrev ? pindexPrev->GetMedianTimePast() : block.GetBlockTime()) : block.GetBlockTime(); // Check that all transactions are finalized