From cce928eaafa5547704b9aadbec83e7968ea851d8 Mon Sep 17 00:00:00 2001 From: 0g-wh Date: Tue, 22 Apr 2025 03:04:08 +0000 Subject: [PATCH] allow block with same block time --- miner/worker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index 8fb42e31bc..68aa267974 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -171,10 +171,10 @@ func (miner *Miner) prepareWork(genParams *generateParams, witness bool) (*envir // to parent+1 if the mutation is allowed. timestamp := genParams.timestamp if parent.Time >= timestamp { - if genParams.forceTime { + /*if genParams.forceTime { return nil, fmt.Errorf("invalid timestamp, parent %d given %d", parent.Time, timestamp) - } - timestamp = parent.Time + 1 + }*/ + timestamp = parent.Time } // Construct the sealing block header. header := &types.Header{