diff --git a/miner/payload_building.go b/miner/payload_building.go index f84d908e86d6..ccfb462539d2 100644 --- a/miner/payload_building.go +++ b/miner/payload_building.go @@ -179,6 +179,10 @@ func (w *worker) buildPayload(args *BuildPayloadArgs) (*Payload, error) { for { select { case <-timer.C: + // CHANGE(taiko): do not update payload. + if w.chainConfig.Taiko { + continue + } start := time.Now() block, fees, err := w.getSealingBlock(args.Parent, args.Timestamp, args.FeeRecipient, args.Random, args.Withdrawals, false) if err == nil { diff --git a/miner/taiko_payload_building.go b/miner/taiko_payload_building.go index 33291a00e4fd..641c9a516d2a 100644 --- a/miner/taiko_payload_building.go +++ b/miner/taiko_payload_building.go @@ -13,7 +13,7 @@ func (payload *Payload) SetFullBlock(block *types.Block, fees *big.Int) { payload.lock.Lock() defer payload.lock.Unlock() - payload.stop <- struct{}{} + go func() { payload.stop <- struct{}{} }() payload.full = block payload.fullFees = fees