diff --git a/chain/gen/gen.go b/chain/gen/gen.go index abbc87e93..ebf868765 100644 --- a/chain/gen/gen.go +++ b/chain/gen/gen.go @@ -414,7 +414,7 @@ func (cg *ChainGen) makeBlock(parents *types.TipSet, m address.Address, vrfticke if cg.Timestamper != nil { ts = cg.Timestamper(parents, height-parents.Height()) } else { - ts = parents.MinTimestamp() + uint64(height-parents.Height())*uint64(build.BlockDelaySecs) + ts = parents.MinTimestamp() + uint64(height-parents.Height())*build.BlockDelaySecs } fblk, err := MinerCreateBlock(context.TODO(), cg.sm, cg.w, &api.BlockTemplate{ diff --git a/node/impl/common/common.go b/node/impl/common/common.go index 2d1beaa31..1d2695b6e 100644 --- a/node/impl/common/common.go +++ b/node/impl/common/common.go @@ -122,7 +122,7 @@ func (a *CommonAPI) Version(context.Context) (api.Version, error) { Version: build.UserVersion(), APIVersion: build.APIVersion, - BlockDelay: uint64(build.BlockDelaySecs), + BlockDelay: build.BlockDelaySecs, }, nil }