0xPolygonHermez / zkevm-node

Go implementation of a node that operates the Polygon zkEVM Network
Other
531 stars 685 forks source link

Fix potential nil pointer for worker #3585

Closed ylsGit closed 3 months ago

ylsGit commented 5 months ago

What does this PR do?

It fixs potential nil pointer for Sequencer.worker

  1. line 96 loadFromPool-->addTxToWorker-->s.worker
  2. line 103 s.worker = xxx

If 1 finishes before 2, there will be a panic.

Reviewers

Main reviewers:

Codeowner reviewers:

cla-bot[bot] commented 5 months ago

We require contributors/corporates @ylsGit to read our Contributor License Agreement, please check the Individual CLA document/Corporate CLA document