Skip to content

Conversation

@Eric-Warehime
Copy link
Contributor

Description

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • tackled an existing issue or discussed with a team member
  • left instructions on how to review the changes
  • targeted the main branch

Comment on lines +205 to +238
go func() {
timer := time.NewTimer(0)
defer timer.Stop()

for {
select {
case <-p.reset:
p.Payload = nil
ctx, err = p.chain.GetLatestContext()
if err != nil {
log.Error("could not reset payload builder, failed to get ctx", "error", err)
continue
}
p.baseFee = vmKeeper.GetBaseFee(ctx)
if p.baseFee != nil {
log.Info("set basefee success")
baseFeeUint = uint256.MustFromBig(p.baseFee)
}
log.Info("reset ctx in payload builder")

case <-p.rebuild:
buildPayload()
timer.Reset(p.Recommit)

case <-timer.C:
buildPayload()
timer.Reset(p.Recommit)

case <-p.stop:
log.Info("Stopping work on payload", "reason", "stopped")
return
}
}
}()

Check notice

Code scanning / CodeQL

Spawning a Go routine Note

Spawning a Go routine may be a possible source of non-determinism
@mattac21 mattac21 changed the base branch from feat/krakatoa to fix/removal-removes December 16, 2025 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants