Skip to content

Commit 3e2cbd7

Browse files
author
iceming123
committed
update MinTimeGap to 300
1 parent b20d86f commit 3e2cbd7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

etrue/pbft_agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ func (agent *PbftAgent) FetchFastBlock(committeeID *big.Int, infos []*types.Comm
938938
}
939939

940940
log.Info("FetchFastBlock ", "parent:", parent.Number(), "hash", parent.Hash())
941-
if parent.Time().Cmp(new(big.Int).SetInt64(tstamp)) > 0 {
941+
if parent.Time().Cmp(new(big.Int).SetInt64(tstamp)) >= 0 {
942942
tstamp = parent.Time().Int64() + 1
943943
}
944944
header := &types.Header{

params/protocol_params.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ var (
163163
MinimumFruits int = 60
164164
MaximumFruits int = 600
165165

166-
MinTimeGap = big.NewInt(359)
166+
MinTimeGap = big.NewInt(300)
167167
)
168168

169169
var (

params/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
const (
2424
VersionMajor = 2 // Major version component of the current release
2525
VersionMinor = 1 // Minor version component of the current release
26-
VersionPatch = 2 // Patch version component of the current release
26+
VersionPatch = 3 // Patch version component of the current release
2727
VersionMeta = "stable" // Version metadata to append to the version string
2828
)
2929

0 commit comments

Comments
 (0)