Skip to content

Commit

Permalink
Merge branch 'taiko' into increase_payload_cache
Browse files Browse the repository at this point in the history
  • Loading branch information
mask-pp authored Feb 20, 2025
2 parents 3dd9bff + 36430eb commit 12e0122
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eth/catalyst/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,11 @@ func (api *ConsensusAPI) forkchoiceUpdated(update engine.ForkchoiceStateV1, payl
TxListHash: &txListHash,
}
id := args.Id()
// If we already are busy generating this work, then we do not need
// to start a second process.
if api.localBlocks.has(id) {
return valid(&id), nil
}
payload, err := api.eth.Miner().BuildPayload(args, false)
if err != nil {
log.Error("Failed to build payload", "err", err)
Expand Down

0 comments on commit 12e0122

Please sign in to comment.