Skip to content

Commit 8df657c

Browse files
committed
allow subseconds blocks (does not work yet)
1 parent f3244aa commit 8df657c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

execution/evm/engine_geth.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ func (g *gethEngineClient) buildPayload(ctx context.Context, ps *payloadBuildSta
488488
// Validate block number continuity
489489
expectedNumber := new(big.Int).Add(parent.Number(), big.NewInt(1))
490490

491-
// Validate timestamp
492-
if ps.timestamp <= parent.Time() {
491+
// Validate timestamp allow equal time to allow sub seconds blocks
492+
if ps.timestamp < parent.Time() {
493493
return nil, fmt.Errorf("invalid timestamp: %d must be greater than parent timestamp %d", ps.timestamp, parent.Time())
494494
}
495495

@@ -704,7 +704,7 @@ func (g *gethEngineClient) NewPayload(ctx context.Context, payload *engine.Execu
704704
}
705705

706706
// Validate timestamp
707-
if payload.Timestamp <= parent.Time() {
707+
if payload.Timestamp < parent.Time() {
708708
g.logger.Warn().
709709
Uint64("payload_timestamp", payload.Timestamp).
710710
Uint64("parent_timestamp", parent.Time()).

0 commit comments

Comments
 (0)