Skip to content
10 changes: 0 additions & 10 deletions consensus/bor/bor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1031,16 +1031,6 @@ func (c *Bor) Prepare(chain consensus.ChainHeaderReader, header *types.Header) e

if header.Time < uint64(time.Now().Unix()) {
header.Time = uint64(time.Now().Unix())
} else {
// For primary validators, wait until the current block production window
// starts. This prevents bor from starting to build next block before time
// as we'd like to wait for new transactions. Although this change doesn't
// need a check for hard fork as it doesn't change any consensus rules, we
// still keep it for safety and testing.
if c.config.IsBhilai(big.NewInt(int64(number))) && succession == 0 {
startTime := header.GetActualTime().Add(-time.Duration(c.config.CalculatePeriod(number)) * time.Second)
time.Sleep(time.Until(startTime))
}
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
const (
VersionMajor = 2 // Major version component of the current release
VersionMinor = 5 // Minor version component of the current release
VersionPatch = 4 // Patch version component of the current release
VersionPatch = 5 // Patch version component of the current release
VersionMeta = "" // Version metadata to append to the version string
)

Expand Down
Loading