Browse Source

Allowed BIP113 (Median Time Past) since beginning.

rx
Just Wonder 5 years ago
parent
commit
01368b925e
  1. 2
      src/validation.cpp

2
src/validation.cpp

@ -3245,7 +3245,7 @@ static bool ContextualCheckBlock(const CBlock& block, CValidationState& state, c @@ -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

Loading…
Cancel
Save