From 86d17787cec2e5be741df38854eb5b60463f1992 Mon Sep 17 00:00:00 2001 From: Martin HS Date: Tue, 23 Jan 2024 13:58:49 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com> --- core/txpool/txpool.go | 2 +- eth/catalyst/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index 0fd67a011d..7ec9dbebda 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -200,7 +200,7 @@ func (p *TxPool) loop(head *types.Header, chain BlockChain) { resetDone = make(chan *types.Header) resetForced bool // Whether a forced reset was requested, only used in simulator mode - resetWaiter chan error // Channel waitinf on a forced reset, only used in simulator mode + resetWaiter chan error // Channel waiting on a forced reset, only used in simulator mode ) var errc chan error for errc == nil { diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index 6ea3823c12..f02b5f3622 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -374,7 +374,7 @@ func (api *ConsensusAPI) forkchoiceUpdated(update engine.ForkchoiceStateV1, payl if api.localBlocks.has(id) { return valid(&id), nil } - // If the beacon chain is ran by a simulator, then transaction inserion, + // If the beacon chain is ran by a simulator, then transaction insertion, // block insertion and block production will happen without any timing // delay between them. This will cause flaky simulator executions due to // the transaction pool running its internal reset operation on a back-